autofilter: fix closing on out-of-popup click

fixes bug:
- open autofilter popup
- click somewhere outside to close it
- try to type something using keyboard to the cell

result: popup closed but cannot type, no jsdialog message about
        autofilter close in the browser console

button is not a valid type in jsdialog executor:
vcl/jsdialog/executor.cxx

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I73c256efbd5c72504540473f854c88b4e4813fdd
This commit is contained in:
Szymon Kłos 2022-03-08 13:08:00 +01:00 committed by Szymon Kłos
parent ddb9317ab5
commit 878cfea7f5

View file

@ -225,7 +225,7 @@ L.Control.AutofilterDropdown = L.Control.extend({
this.subMenu = null;
if (this.builder.windowId)
this.builder.callback('button', 'click', {id: 'cancel'}, null, this.builder);
this.builder.callback('pushbutton', 'click', {id: 'cancel'}, null, this.builder);
this.builder.setWindowId(null);
this.subMenuBuilder.setWindowId(null);
}