mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 586212 - Don't carry out the command when clicking on a disabled splitmenu. r=dolske
This commit is contained in:
parent
c35756d651
commit
6f306245a1
@ -1166,6 +1166,12 @@
|
||||
]]></handler>
|
||||
|
||||
<handler event="click" phase="capturing"><![CDATA[
|
||||
if (this.getAttribute("disabled") == "true") {
|
||||
// Prevent the command from being carried out
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
let node = event.originalTarget;
|
||||
while (true) {
|
||||
if (node == this.menuitem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user