We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Component fw-button - https://crayons-next.freshworks.com/components/core/button/
Describe the bug Disabled button still fired the onclick method attached to it.
To Reproduce Attaching the recording for reference below
Expected behavior The disabled button should not trigger onclick method attached to it.
The text was updated successfully, but these errors were encountered:
@AadhavanVA Can we make onclick = null, when assigning the disable attribute to the button?
onclick = null
disable
function disableButton() { myButton.setAttribute('disabled', true); myButton.onclick = null; }
Or can we use css property here for making that disable ? style="pointer-events: none;"
style="pointer-events: none;"
Sorry, something went wrong.
No branches or pull requests
Component
fw-button - https://crayons-next.freshworks.com/components/core/button/
Describe the bug
Disabled button still fired the onclick method attached to it.
To Reproduce
Attaching the recording for reference below
Screen.Recording.2023-04-25.at.3.16.07.PM.mov
Expected behavior
The disabled button should not trigger onclick method attached to it.
The text was updated successfully, but these errors were encountered: