#Would be a good idea to safeguard "ref" in "Select" component

1 messages · Page 1 of 1 (latest)

modern mortar
#

When handling item select in the "Select" component, there is a ref focus call as: inputRef.current.focus();
maybe it's good to do some null check on the line? since the ref here is not guaranteed and could throw null pointer error in some scenarios

remote sundial