Searching in the FlatTermSelector can cause the editor to crash #30932
Labels
General Interface
Parts of the UI which don't fall neatly under other labels.
[Priority] High
Used to indicate top priority items that need quick attention
[Status] In Progress
Tracking issues with work in progress
[Type] Regression
Related to a regression in the latest release
Description
A specific type of search in the FlatTermSelector component can cause the block editor to crash with the JS-error
TypeError: undefined is not an object (evaluating 'elem.ownerDocument')
. It happens if you have selected a term from the dropdown list with the keyboard after searching and then type a letter in the search box which is not the next letter in the selected term.The issue exists in both latest WP and GB.
Step-by-step reproduction instructions
[Error] TypeError: undefined is not an object (evaluating 'elem.ownerDocument') getClientPosition (components.js:13432)
Expected behaviour
The editor should do a new term search, not crash.
Actual behaviour
The editor crashes and is unrecoverable.
Screenshots or screen recording (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: