Calcite-button - setting disabled: false
on a button after its creation causes other (unrelated) disabled buttons to again respond to click events in Firefox
#9565
Labels
3 - installed
Issues that have been merged to master branch and are ready for final confirmation.
ArcGIS Online
Issues logged by ArcGIS Online team members.
browser-firefox
Issues tied to the last 2 versions of Firefox browser.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 5
A few days of work, definitely requires updates to tests.
has workaround
Issues have a workaround available in the meantime.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
Check existing issues
Actual Behavior
When multiple
calcite-buttons
lie at the same DOM level, settingdisabled = false
programmatically to one button causes all other neighboringcalcite-buttons
, regardless of their owndisabled
setting, to start responding toonClick()
events again.This issue is in a similar vein to #8729. It only occurs in Firefox.
Expected Behavior
Setting one
calcite-button's
disabled
attribute should not affect other, unrelated buttons' event responses.Reproduction Sample
https://codepen.io/iyouth66/pen/ZENXMNx?editors=1000
Reproduction Steps
onClick()
event and prints a message in the console.div
tags where necessary. Observe that the problem no longer occurs.Reproduction Version
2.9.0
Relevant Info
Not a regression.
cc @geospatialem
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
AGOL Map Viewer has buttons that lie at the same DOM level that are enabled/disabled programmatically. These buttons encounter this issue.
Calcite package
Esri team
ArcGIS Online
The text was updated successfully, but these errors were encountered: