Ox.Menu: deselect when mouse moves over disabled item
This commit is contained in:
parent
10704ccb3d
commit
2e853ba316
1 changed files with 6 additions and 2 deletions
|
@ -245,8 +245,12 @@ Ox.Menu = function(options, self) {
|
||||||
if ($target.is('.OxCell')) {
|
if ($target.is('.OxCell')) {
|
||||||
position = $parent.data('position');
|
position = $parent.data('position');
|
||||||
item = that.items[position];
|
item = that.items[position];
|
||||||
if (!item.options('disabled') && position != self.options.selected) {
|
if (position != self.options.selected) {
|
||||||
|
if (!item.options('disabled')) {
|
||||||
selectItem(position);
|
selectItem(position);
|
||||||
|
} else {
|
||||||
|
mouseleave();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mouseleave();
|
mouseleave();
|
||||||
|
|
Loading…
Reference in a new issue