mirror of
https://github.com/zotero/zotero.git
synced 2026-09-24 00:51:37 +00:00
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…
Add table
Reference in a new issue