Merge pull request #995 from palash2601/fix/combobox-modelValue-update

fix(listbox): prevent modelValue change by child components addition
This commit is contained in:
Thijs Louisse 2020-10-06 19:10:07 +02:00 committed by GitHub
commit 942ba65d8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 } }),
); );