Skip to content

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

@agdhruv

Description

@agdhruv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: StaleAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions