WebUI cr-toggle/cr-checkbox: Fix case where space toggles twice.
It was possible for the user to focus the inner <button> element via click (otherwise button has tabindex -1). After that, pressing 'Space' once would trigger both 'click' and 'keypress' toggling the state twice. Bug: 841693,840723 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: If1200b6d39ac3eb4d6dc44e5622b75ed7f8beab8 Reviewed-on: https://chromium-review.googlesource.com/1058249 Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:Scott Chen <scottchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#558811}
Showing
Please register or sign in to comment