As select and deselect, do update modelValue before emitting their respective events, clear now updates before emitting the clear event, to make it consistent.
This change is useful, because when you bind a listener to select or deselect you may easily use the ref passed to v-model, while for the clear event listener, v-model has not been yet updated which makes it complex to trigger other functions that rely on in the selected value, in my use case I have a reusable filter component that may spawn dozens of multiselect elements based of an array prop with configurations.
As
select
anddeselect
, do updatemodelValue
before emitting their respective events,clear
now updates before emitting theclear
event, to make it consistent.This change is useful, because when you bind a listener to
select
ordeselect
you may easily use theref
passed tov-model
, while for theclear
event listener,v-model
has not been yet updated which makes it complex to trigger other functions that rely on in the selected value, in my use case I have a reusable filter component that may spawn dozens of multiselect elements based of an array prop with configurations.