tom-select icon indicating copy to clipboard operation
tom-select copied to clipboard

Fix `input.value undefined`

Open cavasinf opened this issue 1 year ago • 12 comments

Fix error when using trim() on an undefined value.

image

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.

cavasinf avatar Aug 30 '24 11:08 cavasinf