mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 586212 - Don't carry out the command when clicking on a disabled splitmenu. r=dolske
This commit is contained in:
parent
4768982795
commit
c1b5d15bb7
@ -1166,6 +1166,12 @@
|
|||||||
]]></handler>
|
]]></handler>
|
||||||
|
|
||||||
<handler event="click" phase="capturing"><![CDATA[
|
<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;
|
let node = event.originalTarget;
|
||||||
while (true) {
|
while (true) {
|
||||||
if (node == this.menuitem)
|
if (node == this.menuitem)
|
||||||
|
Loading…
Reference in New Issue
Block a user