tom-select
tom-select copied to clipboard
Fix `input.value undefined`
Fix error when using trim() on an undefined value.
I don't know if you guys accept optional chaining for browser compatibility.
eg:
input.value?.trim() ?? ''
So I've ended up using a simple ternary operator.