The parameter-type-change event should also fire if type was initially undefined

Bug: T260343
Change-Id: I26f50dfd6b4b747b1ef88d619df6aff5278d412a
This commit is contained in:
Andrew Kostka 2021-01-08 14:44:52 +01:00 committed by Andrew-WMDE
parent aaf660f38c
commit dfa86a7c71

View file

@ -983,7 +983,7 @@ Dialog.prototype.startParameterInputTracking = function ( paramValues ) {
// Set to true, unless one of the exceptions applies.
this.paramPropertyChangeTracking[ prop ] = !(
// Setting type when we already have a specific type.
( prop === 'type' && paramValues[ prop ] !== 'unknown' ) ||
( prop === 'type' && paramValues[ prop ] !== undefined && paramValues[ prop ] !== 'unknown' ) ||
// Setting priority but already required, suggested, or deprecated.
( ( prop === 'required' || prop === 'suggested' || prop === 'deprecated' ) &&