RCFilters UI: Stop mousedown propagation when capsule item 'x' button is clicked
authorMoriel Schottlender <moriel@gmail.com>
Thu, 23 Feb 2017 21:52:49 +0000 (13:52 -0800)
committerCatrope <roan@wikimedia.org>
Fri, 24 Feb 2017 00:40:11 +0000 (00:40 +0000)
commit76825c5334c65a705638591094b781506bf26914
tree4db9d5a15c76f888c6aa5b9c10ce9e9f43ea158f
parentb3fbdff0774e25c59a0349394cc5b77ada9acdf4
RCFilters UI: Stop mousedown propagation when capsule item 'x' button is clicked

We don't want the parent (the CapsuleMultiselectWidget) to receieve
the mousedown event, because it then uses it to focus and open the
popup.

Bug: T158006
Change-Id: I1ae9b58b723a70cc150392224196bdb67ebf30b4
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.CapsuleItemWidget.js