Non-text inputs can trigger exception inside isTextField in Safari #8254
Labels
Browser Issues
Issues or PRs that are related to browser specific problems
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
[Type] Enhancement
A suggestion for improvement.
Describe the bug
When a block exists with a non-text
<input>
(e.g.<input type="submit">
it can cause an issue insideisTextField
.This seems to be specific to Safari, which throws an exception when trying to get
selectionStart
from a non-text<input
>. Other browsers returnundefined
(such as Chrome) but Safari throws aTypeError
exception for whatever reason.To Reproduce
Steps to reproduce the behavior:
<input type="submit">
inside the Edit representationExpected behavior
No error should be displayed.
Desktop (please complete the following information):
master
The text was updated successfully, but these errors were encountered: