mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-11 09:49:36 +00:00
Clear input after option selection in tomselect fields
Fixes issue #1264
This commit is contained in:
parent
12a760d27e
commit
a722608ae8
8 changed files with 11 additions and 1 deletions
|
|
@ -75,6 +75,7 @@ export default class extends Controller
|
|||
searchField: "name",
|
||||
//labelField: "name",
|
||||
valueField: "name",
|
||||
clearAfterSelect: true,
|
||||
onItemAdd: this.onItemAdd.bind(this),
|
||||
render: {
|
||||
option: (data, escape) => {
|
||||
|
|
@ -136,4 +137,4 @@ export default class extends Controller
|
|||
//Destroy the TomSelect instance
|
||||
this._tomSelect.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue