react icon indicating copy to clipboard operation
react copied to clipboard

Bug: onSelect does not fire when contentEditable is set to "plaintext-only"

Open agdhruv opened this issue 1 year ago • 2 comments

React version: 18

Steps To Reproduce

  1. Create a div with `contentEditable="plaintext-only".
  2. Define an onSelect event handler.
  3. 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.

agdhruv avatar Jun 08 '24 03:06 agdhruv

The contentEditable="plaintext-only" attribute is not yet fully supported across all browsers, including Firefox.

m1her avatar Jun 10 '24 15:06 m1her

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!

github-actions[bot] avatar Sep 08 '24 16:09 github-actions[bot]

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!

github-actions[bot] avatar Sep 15 '24 17:09 github-actions[bot]