Loading
Guard GlFilteredSearch blur handler against non-Element relatedTarget
What does this MR do?
Adds an optional chaining in GlFilteredSearch checks whether focus has moved to the suggestions list.
- e.relatedTarget?.classList.contains(FILTERED_SEARCH_SUGGESTIONS_CLASS)
+ e.relatedTarget?.classList?.contains(FILTERED_SEARCH_SUGGESTIONS_CLASS)See on why we proceed with this fix #3663 (comment 3885058856)
Screenshots or screen recordings
No visual changes.
Integrations
gitlab-org/gitlab!257049 (merged)
Part 1 of #3663 (closed)
Edited by Chaoyue Zhao