move rcfilters scroll logic to better support mobile mode
authorJan Drewniak <jan.drewniak@gmail.com>
Mon, 5 Aug 2019 16:55:08 +0000 (18:55 +0200)
committerJan Drewniak <jan.drewniak@gmail.com>
Mon, 5 Aug 2019 16:55:08 +0000 (18:55 +0200)
commitfdb59ed9314b1200771fd310a73625834af3400d
tree5fac070291de2cb4460d9530c9a6321d6d539d93
parentddef82758db4144f716431e04387d96de617135d
move rcfilters scroll logic to better support mobile mode

Moves the logic that scrolls the rcfilters search input into view
from the onInputFocus callback to the onMenuToggle callback.

This allows the scroll behaviour to be triggered on mobile when
you tap the active filters area, and prevents the scroll behaviour
from triggering when the menu closes on mobile.

Bug: T229360
Change-Id: I1ca5c59e16a5dc6c6f473bbf3825a3e7c1e0f28e
resources/src/mediawiki.rcfilters/ui/FilterTagMultiselectWidget.js