Skip to content

Disabled buttons where the 'disabled' attribute is set dynamically are clickable in Firefox (React) #8203

@Jmendo12

Description

@Jmendo12

Check existing issues

Actual Behavior

Similar to #7043, in Firefox when using the React wrapper, calcite-buttons which have their disabled attribute set dynamically can still be clicked when disabled.

Expected Behavior

In Firefox, calcite-buttons with the React wrapper which are disabled dynamically cannot be clicked when disabled.

Reproduction Sample

https://codesandbox.io/s/disabled-button-z2mmrd

Reproduction Steps

  1. Load the sample in Firefox
  2. Check the "Disable Button" checkbox
  3. Click the "Increment Count" button
  4. Observe as the count is incremented when clicking the disabled button

Reproduction Version

1.9.2

Relevant Info

MacOS Sonoma, Firefox, React wrapper

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

Currently working around this by using the recommended workaround of checking if the button is disabled within the click handler.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

Realtime (ArcGIS Velocity)

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - newNew issues that need assignment.Realtime (ArcGIS Velocity)Issues logged by Realtime (ArcGIS Velocity) team members.bugBug reports for broken functionality. Issues should include a reproduction of the bug.calcite-components-reactIssues specific to the @esri/calcite-components-react package.impact - p3 - not time sensitiveUser set priority impact status of p3 - not time sensitivespikeIssues that need quick investigations for time estimations, prioritization, or a quick assessment.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions