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) {
|
function blurOpenField(event) {
|
||||||
if (textboxRef.current && event.target != textboxRef.current) {
|
if (textboxRef.current && (!event || event.target != textboxRef.current)) {
|
||||||
textboxRef.current.blur();
|
textboxRef.current.blur();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue