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:
Lizandro Guarnizo
2026-07-09 13:22:39 -05:00
co-authored by Claude Sonnet 4.6
parent 813b81e0f6
commit dfff945066
+1 -1
View File
@@ -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;