mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
d487b44dd0
Symptoms: * When adding a template with required parameters, the last parameter is initially focused * Parameters and parts appear out of order, and adding/remove/moving them shows them in almost random placement Diagnoses: * Parameters are auto-focused when added, and parameters are auto-added in forward order * TransclusionModel's process method had a bug in which the code to derive an offset from the item being removed would not be reachable due to an inverted logic statement Prognosis: * Fatal, with a 10% chance of survival Treatment: * Set focus on the first parameter after auto-adding required parameters to a template * Invert the logic in TransclusionModel's process method, so that if the index IS undefined we will proceed to define it Change-Id: I299053b63045ec933747831f1b4aa63493760f8b |
||
---|---|---|
.. | ||
ve.ui.MWCategoriesPage.js | ||
ve.ui.MWLanguagesPage.js | ||
ve.ui.MWSettingsPage.js | ||
ve.ui.MWTemplatePage.js | ||
ve.ui.MWTemplateParameterPage.js | ||
ve.ui.MWTemplatePlaceholderPage.js | ||
ve.ui.MWTransclusionContentPage.js |