Fix crash when clicking off an open tag to another item
Regression in React tags box
This commit is contained in:
parent
5ba5e70b9d
commit
cc3f994207
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ const TagsBox = React.forwardRef((props, ref) => {
|
|||
}
|
||||
|
||||
function blurOpenField(event) {
|
||||
if (textboxRef.current && event.target != textboxRef.current) {
|
||||
if (textboxRef.current && (!event || event.target != textboxRef.current)) {
|
||||
textboxRef.current.blur();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue