Skip to content
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

onClick fires on a button which is inside a disabled fieldset #15818

Closed
everdimension opened this issue Jun 4, 2019 · 3 comments
Closed

onClick fires on a button which is inside a disabled fieldset #15818

everdimension opened this issue Jun 4, 2019 · 3 comments
Labels
Resolution: Stale Automatically closed due to inactivity

Comments

@everdimension
Copy link
Contributor

Do you want to request a feature or report a bug?

A bug

What is the current behavior?

An onClick handler is called on a button which is inside a disabled fieldset and has markup inside of it.

Reproduction

https://jsfiddle.net/everdimension/05p687q2/9/

What is the expected behavior?

The onClick handler should not be called, because the button is in a disabled state, even though it doesn't explicitly have a disabled attribute.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

Chrome and Safari are affected. In Firefox there is no such bug.
As for React versions, I think all versions are affected.

NOTE

This is related to #8308

@everdimension
Copy link
Contributor Author

Oh and I have also found #7711

@stale
Copy link

stale bot commented Jan 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jan 10, 2020
@stale
Copy link

stale bot commented Jan 17, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

@stale stale bot closed this as completed Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Automatically closed due to inactivity
Projects
None yet
Development

No branches or pull requests

1 participant