RCFilters: Clean up focus handling in capsule widget
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 6 Jan 2017 23:59:48 +0000 (15:59 -0800)
committerCatrope <roan@wikimedia.org>
Wed, 18 Jan 2017 01:18:32 +0000 (01:18 +0000)
commit3cd8c25fa5b75c02a6809efb91bc1fbb60659b66
tree96e83ffa4b14641a753cfcb429cf1fbc2c823204
parent704f30728956daaaf818ef30fcf4c7adf89ec037
RCFilters: Clean up focus handling in capsule widget

Don't let the parent class's weird implementation run when the
widget is focused through other code paths (e.g. clicking on
the non-input part of it).

We still need to fix the behavior when you click in the
input twice (the first click shows the popup and the second
click hides it), but this is much better already.

Related to I21b8cff4048 in oojs-ui.

Bug: T149452
Change-Id: I08743c64ea32feace757e2a8626df2f5310cfbc9
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterCapsuleMultiselectWidget.js