fix(listbox): prevent modelValue change by child components addition

This commit is contained in:
palash2601 2020-10-06 17:47:36 +02:00
parent 580603cedf
commit 94da0ae90c

View file

@ -670,7 +670,7 @@ const ListboxMixinImplementation = superclass =>
ev.stopPropagation(); ev.stopPropagation();
} }
this.__onChildCheckedChanged(ev); this.__onChildCheckedChanged(ev);
this.requestUpdate('modelValue'); this.requestUpdate('modelValue', this.modelValue);
this.dispatchEvent( this.dispatchEvent(
new CustomEvent('model-value-changed', { detail: { element: ev.target } }), new CustomEvent('model-value-changed', { detail: { element: ev.target } }),
); );