mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
Merge 59e8e4fcc7 into 095ecb3589
This commit is contained in:
commit
d4c5836ae4
1 changed files with 2 additions and 0 deletions
|
|
@ -1234,6 +1234,8 @@ class Choices {
|
|||
this._store.withTxn(() => {
|
||||
// Remove item associated with button
|
||||
this._removeItem(itemToRemove);
|
||||
const passedElementValueModified = this.passedElement.value.split(",").filter(x=> x !== itemToRemove.value)
|
||||
this.passedElement.value = passedElementValueModified.join(",")
|
||||
this._triggerChange(itemToRemove.value);
|
||||
|
||||
if (this._isSelectOneElement && !this._hasNonChoicePlaceholder) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue