Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(buttons): double toggle on spacebar #4630

Closed

Conversation

Foxandxss
Copy link
Contributor

This is basically a revert of bdfb289.

A spacebar click is treated as a normal click event so it will trigger the toggle twice.

I don't think there is a proper way of testing this.

Plunker

Fixes #4474

@Foxandxss Foxandxss changed the title fix(buttons): doble toggle on spacebar fix(buttons): double toggle on spacebar Oct 15, 2015
@wesleycho
Copy link
Contributor

LGTM

Only thing I might suggest is maybe update the docs on advice for accessibility, but I'm fine with this being merged as in.

@Foxandxss
Copy link
Contributor Author

What you mean with "on advice for accessibility"?

@wesleycho
Copy link
Contributor

Nesting an input tag so the input handles all of the accessibility requirements.

@Foxandxss Foxandxss closed this in e8808d3 Oct 15, 2015
aroop pushed a commit to aroop/bootstrap that referenced this pull request Oct 16, 2015
@Foxandxss Foxandxss deleted the fix/buttonsaccessibilty branch October 23, 2015 23:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants