RCFilters UI: Prevent label from stealing focus on click
authorMoriel Schottlender <moriel@gmail.com>
Mon, 17 Apr 2017 21:19:31 +0000 (14:19 -0700)
committerMoriel Schottlender <moriel@gmail.com>
Mon, 17 Apr 2017 21:19:31 +0000 (14:19 -0700)
commitc872b6438b052cfe03df834779b9a13581ccf7eb
treefe2f0ac4d4a85a2bdd4eb104c1000781f6619c62
parentd0fbec511d3e920efc2517199c32e67c5a6b8157
RCFilters UI: Prevent label from stealing focus on click

The filter options' labels are set as "label for" the checkbox
which means that by default they "give" the focus away to the
checkbox when clicked. However, we don't want that behavior so
that we can continue arrow movement through the filter option
items rather than the DOM elements. Also, the checkbox prevents
defaults on click as well as it is.

Change-Id: I9758b0dacd8cd647ec5e3e623edc66e1d7f7420a
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterMenuOptionWidget.js
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterTagMultiselectWidget.js