Fix select file via MenuItem in Firefox

instead of an inline FileButton, just use an unattached input element to
trigger the select file dialog.
This commit is contained in:
j 2021-06-25 19:58:37 +01:00
commit 03c2f9f3a1
2 changed files with 32 additions and 26 deletions

View file

@ -463,10 +463,6 @@ Ox.Menu = function(options, self) {
item = that.items[self.options.selected];
if (item) {
item.removeClass('OxSelected');
if (item.options('file')) {
item.$button.blurButton();
that.bindEvent({key_enter: clickSelectedItem})
}
}
/* disabled
that.triggerEvent('deselect', {
@ -485,10 +481,6 @@ Ox.Menu = function(options, self) {
});
item.options('items').length && that.submenus[item.options('id')].showMenu();
item.addClass('OxSelected');
if (item.options('file')) {
item.$button.focusButton();
that.unbindEvent('key_enter');
}
that.triggerEvent('select', {
id: item.options('id'),
title: Ox.isString(item.options('title')[0])