Ox.Menu: deselect when mouse moves over disabled item

This commit is contained in:
rolux 2018-10-13 12:06:34 +02:00
parent 10704ccb3d
commit 2e853ba316

View file

@ -245,8 +245,12 @@ Ox.Menu = function(options, self) {
if ($target.is('.OxCell')) {
position = $parent.data('position');
item = that.items[position];
if (!item.options('disabled') && position != self.options.selected) {
if (position != self.options.selected) {
if (!item.options('disabled')) {
selectItem(position);
} else {
mouseleave();
}
}
} else {
mouseleave();