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

pointer event is fired on disabled element #312

Open
zerbino opened this issue Sep 16, 2016 · 2 comments
Open

pointer event is fired on disabled element #312

zerbino opened this issue Sep 16, 2016 · 2 comments

Comments

@zerbino
Copy link

@zerbino zerbino commented Sep 16, 2016

Hello,

When putting touch-action="none" on a disabled element, pointer events might be fired when touching the element. I know that setting touch-action to "none" disables default behavior such as scrolling and panning, but I didn't expect it to bypass the disabled tag.

Is this expected behavior? I observed this on iOS 9.2.

@patrickhlauke
Copy link
Collaborator

@patrickhlauke patrickhlauke commented Sep 16, 2016

testing on Edge with native Pointer Events, no...a disabled control (like a button) should not fire any pointer events (horribly hacky test https://jsfiddle.net/9rs98mv6/6/)

@NekR
Copy link

@NekR NekR commented Oct 17, 2016

Why disabled element should prevent any events than click? If Edge has that behavior, it doesn't that's true.

IE and Firefox inherently have a bug which prevents all the events on disabled elements (and/or elements under disabled fieldset), while HTML spec says that only click event should be prevented (at least it was that couple of years ago when I read, did it change?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.