RC Filters: Check if app is initialized before calling change tags
authorKosta Harlan <kharlan@wikimedia.org>
Thu, 28 Jun 2018 14:22:54 +0000 (10:22 -0400)
committerKosta Harlan <kharlan@wikimedia.org>
Thu, 28 Jun 2018 14:43:51 +0000 (10:43 -0400)
commitbb15314f1b50b088594fe4eed5e0f26583a3ab92
treea7a6c3887d2959cb1e211001775a79196f88942e
parenta17f3a1267bc122b20e491f0602341296bd36219
RC Filters: Check if app is initialized before calling change tags

This only occurs when highlighting is enabled in the query parameters on page
load. If you load a watchlist page with highlighting enabled, you'll see that
FilterTagMultiselectWidget calls the parent onChangeTags method, and then we
end up at updateIfHeightChanged where a resize event occurs. This commit
checks to see if the app is still initializing before propagating this event.

Bug: T198399
Change-Id: I8d36875ecf859b40854fe57fecf824e648bb3bf8
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterTagMultiselectWidget.js