Web:Shared:Fixed page crash when clicking on the cross of the selected tag from the hidden list of tags in the search.
This commit is contained in:
parent
6ebbb26d0d
commit
7787407d5d
@ -41,7 +41,9 @@ export const TagPure = ({
|
||||
const onClickOutside = React.useCallback((e: Event) => {
|
||||
const target = e.target as HTMLElement;
|
||||
if (
|
||||
(!!target && target.className?.includes("advanced-tag")) ||
|
||||
(!!target &&
|
||||
typeof target.className !== "object" &&
|
||||
target.className?.includes("advanced-tag")) ||
|
||||
!isMountedRef.current
|
||||
)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user