1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-01-17 21:28:30 +01:00

Allow unlimited number of items in selects (#568)

This commit is contained in:
Kovah 2022-11-17 12:14:00 +01:00
parent ad396912cd
commit 5d38293edd
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@ export default class SimpleSelect {
constructor ($el) {
new TomSelect($el, {
plugins: ['caret_position', 'input_autogrow'],
create: false
create: false,
maxOptions: null,
});
}
}

View File

@ -26,6 +26,7 @@ export default class TagsSelect {
delimiter: ',',
persist: false,
create: this.selectAllowsCreation(),
maxOptions: null,
onItemAdd:function(){
this.setTextboxValue('');
this.refreshOptions();