feat: clear TomSelect input after exam selection
After pressing Enter to add an exam, the typed text is cleared and the dropdown closes so the next code can be typed immediately. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
813b81e0f6
commit
dfff945066
@@ -1032,7 +1032,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
plugins: ['remove_button'],
|
||||
maxOptions: null,
|
||||
selectOnTab: true,
|
||||
onItemAdd: () => recalcularPrecios(),
|
||||
onItemAdd() { recalcularPrecios(); examTS.setTextboxValue(''); examTS.refreshOptions(false); },
|
||||
onItemRemove: () => recalcularPrecios(),
|
||||
onType(str) {
|
||||
if (!str) return;
|
||||
|
||||
Reference in New Issue
Block a user