-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
9.5.1.3
-
Chrome Version 92.0.4515.107 (Official Build) (x86_64)
Edge Version 93.0.957.0 (Official build) Dev (x86_64)
-
None
Steps to Reproduce
<zk> <button disabled="true" onRightClick='alert("triggered")' label="Right-click me!"/> </zk>
Right-click on the button.
Current Result
Only Chromium-based browsers trigger a right-click event.
Expected Result
No onRightClick event should be triggered.
Debug Information
Since Chrome 92.
A reproducible HTML example:
<div id="outer"> <button id="btn" disabled>Right-click me!</button> </div> <script> document.getElementById('outer').addEventListener('contextmenu', (e) => console.log('outer received')); document.getElementById('btn').addEventListener('contextmenu', (e) => console.log('btn received')); </script>
Since parents will receive the event, ZK will handle the event and send it back to the server.
Not sure it's a bug or a feature.