mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-08 13:55:21 +02:00
Merge pull request #555 from eitchtee/feat/tom-select-improvements
feat(tom-select): clear input after picking on a multi-item select
This commit is contained in:
@@ -60,12 +60,15 @@ window.TomSelect = function createDynamicTomSelect(element) {
|
|||||||
]
|
]
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
onDropdownOpen: function () {
|
onDropdownOpen: function () {
|
||||||
schedulePopperUpdate(this);
|
schedulePopperUpdate(this);
|
||||||
},
|
},
|
||||||
onItemAdd: function () {
|
onItemAdd: function () {
|
||||||
|
if (this.settings.mode === 'multi') {
|
||||||
|
this.setTextboxValue();
|
||||||
|
this.refreshOptions(false);
|
||||||
|
}
|
||||||
schedulePopperUpdate(this);
|
schedulePopperUpdate(this);
|
||||||
},
|
},
|
||||||
onItemRemove: function () {
|
onItemRemove: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user