-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabled buttons where the 'disabled' attribute is set after the button is created are clickable in Firefox (raw Calcite) #8729
Comments
Thanks for reporting this. It looks like we might be able to drop the FF-specific workaround as v116 is covered by FF ESR (v115+). Local testing looks good for both #7043 and this use case (codepen). |
I tested the fix in the linked PR and it works as expected in Maps SDK for JS with Firefox v122. Thank you! |
@nCastle1 No, thank you for the detailed description and quickly testing the fix. We really appreciate it! 🙌 |
Apparently, I can't math in the evening. 😅 We'll have to wait until the next ESR update to install this, so 116 is covered. According to https://whattrainisitnow.com/calendar/, it looks like July 9th this year. I'll provide an alternative solution for this. Sorry for the hassle! |
Existing ESR users won't be offered the upgrade to 128 until 128.3 on October 1st. |
@dasa Why you gotta kick a dev when they're down?🦿😭 lol Serious talk, thanks for clarifying. Will update my linked PR. |
@dasa Sharing our convo for posterity, the ESR will be available for upgrade at version X.2.0, so our upgrade date is now September 3rd. |
Installed and assigned for verification. |
Verified in Firefox with |
Check existing issues
Actual Behavior
Calcite buttons (and other controls, like Checkbox) that have been disabled with the
disabled
property still fireonclick
events.Expected Behavior
Calcite buttons and other components should suppress the onclick event when the control is disabled.
Reproduction Sample
Gist (I don't have a codepen account)
It's pretty simple though:
Reproduction Steps
Reproduction Version
2.4.0
Relevant Info
Observed in Firefox on Mac.
I believe an earlier issue with firefox buttons not honoring the 'disabled' property was partially addressed in this PR: https://github.com/Esri/calcite-design-system/pull/7107/files.
I played around with a local build and have a PR that appears to fix the problem, but this was made to satisfy my curiosity and is more of a proof of concept than a merge-worthy PR.
There is another issue filed specifically for React that I suspect shares a root cause with this issue, but I don't know. #8203
Regression?
No response
Priority impact
p3 - want for upcoming milestone
Impact
The ArcGIS Maps SDK uses Calcite Components in quite a few widgets. The workaround (check disabled state within the event handler) is straightforward, but will have to be done in several places.
Because the code for implementing the current Firefox disablement fix is shared between several components, several components are likely impacted. I only checked Checkbox and Button.
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: