diff --git a/chrome/content/zotero/components/itemPane/tagsBox.jsx b/chrome/content/zotero/components/itemPane/tagsBox.jsx index 9dd7d3dbef..09672acb11 100644 --- a/chrome/content/zotero/components/itemPane/tagsBox.jsx +++ b/chrome/content/zotero/components/itemPane/tagsBox.jsx @@ -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(); } }