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

fix: whitelist tags to be ignored with disabled attribute #1362

Merged
merged 2 commits into from
Dec 18, 2019
Merged

fix: whitelist tags to be ignored with disabled attribute #1362

merged 2 commits into from
Dec 18, 2019

Conversation

hiendv
Copy link
Contributor

@hiendv hiendv commented Dec 4, 2019

This PR resolves #1321.
The list follows W3C Recommendation with the addition of <command> and <keygen> as listed by MDN Web Docs.

Copy link
Contributor

@dobromir-hristov dobromir-hristov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets split this into two tests. One for disabled elements(buttons, etc), one for those like anchors.

Just so it's clear? Maybe even a custom component in there?

Overall I think the PR makes very much sense.

@hiendv
Copy link
Contributor Author

hiendv commented Dec 16, 2019

So should I write a list of tests for valid disabled elements: <button>, <input>, etc and a list of tests for others? I can imagine two blocks for these lists would be lengthy because each element has different events to test on. Refactoring these tests using a loop would be possible though. Thanks for your review.

@dobromir-hristov
Copy link
Contributor

No, not for all (I dont think its necessary), just one for disablable (lol) elements and one for such that cant be (like anchor).

@hiendv
Copy link
Contributor Author

hiendv commented Dec 17, 2019

I think the PR is ready for your review again @dobromir-hristov ;)

Copy link
Member

@afontcu afontcu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@JessicaSachs JessicaSachs merged commit d681e76 into vuejs:dev Dec 18, 2019
@vue-bot
Copy link

vue-bot commented Dec 18, 2019

Hey @hiendv, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

@hiendv hiendv deleted the fix-disabled-attr branch December 18, 2019 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'disabled' attribute prevents triggering events on all HTML tags
5 participants