mediawiki-extensions-Visual.../modules/ve-mw/ui/layouts
Thiemo Kreuz 74bffc5d0d Fix sidebar losing focus when unchecking params with space
1. Before, removePages() was calling setPage() with null. This makes
sense for removed top-level parts because these are really removed
from both sides of the dialog. Template parameters are never removed.
Only unchecked (and removed from the right side of the dialog, but
this is not what this code is about). When I navigate a parameter
list and uncheck a parameter I need the focus and highlighting to
stay.

2. We have a dedicated method when a parameter is unchecked. This
can check if the removed parameter is also the selected one (called
"set" in this code) and can reset this state. Without losing the
highlighting or anything else.

Bug: T312213
Change-Id: Ibb717ca49cae805617ebee196937c79daa72f1c1
2022-07-20 09:19:59 +00:00
..
ve.ui.MWTwoPaneTransclusionDialogLayout.js Fix sidebar losing focus when unchecking params with space 2022-07-20 09:19:59 +00:00
ve.ui.MWVerticalLayout.js Drop StackLayout 2022-07-07 13:06:24 +02:00