mediawiki-extensions-Visual.../modules/ve-mw
Thiemo Kreuz 97486b2b3d Rename and document definition of "empty" in ve.ui.MWParameterPage
I found this while working on T274551, which is all about the
definition of "empty".

In the old sidebar a parameter's name is dimmed (gray) as long as
the parameter's value is empty. This stops working entirely when
there is a default value.

My first impulse was "this is a bug". When there is a default
value, both the empty string and the default value (when the user
enters it exactly) typically trigger the same behavior: The
template uses the default value, just as if the user entered it.

But this code is correct because of the way it is used. Only
parameters that are "truly" empty should be visually marked as
such. The moment there is a default value it is either impossible
to change this back to an empty string – meaning the parameter
can never be truly empty – or the empty string is meaningful user
input.

Bug: T274551
Change-Id: I90657bfe83e56afd3942428c0dd8a47b444e39c9
2021-08-11 07:24:41 +00:00
..
ce Minor documentation updates in template related classes 2021-06-25 16:46:59 +02:00
dm Revert "Hide deprecated parameters if they don't have a value" 2021-08-03 08:24:24 +00:00
init Move abort event tracking from the start to the end of the teardown process 2021-07-27 22:50:52 +02:00
preinit Document and use mw.Api parameter defaults 2021-07-12 09:13:59 +02:00
tests Revert "Hide deprecated parameters if they don't have a value" 2021-08-03 08:24:24 +00:00
themes
ui Rename and document definition of "empty" in ve.ui.MWParameterPage 2021-08-11 07:24:41 +00:00