Bug: onSelect does not fire when contentEditable is set to "plaintext-only"
React version: 18
Steps To Reproduce
- Create a
divwith `contentEditable="plaintext-only". - Define an
onSelectevent handler. - It does not fire upon interacting with the
div.
Link to code example: https://codesandbox.io/p/sandbox/unruffled-kapitsa-9rv7z5
The current behavior
onSelect does not fire when contentEditable is set to plaintext-only but fires when it is set to true.
The expected behavior
onSelect should fire for both cases.
The contentEditable="plaintext-only" attribute is not yet fully supported across all browsers, including Firefox.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!