Skip to content

onCompositionStart, onCompositionEnd, and onCompositionUpdate are bound to the wrong case-sensitive event name. #3003

@xorgy

Description

@xorgy

Reproduction

Steps to reproduce

  • Add an onCompositionStart to a Preact dom element
  • Try using an input method on that input, making sure to start a composition.

Expected Behavior

The onCompositionStart handler should be called.

Actual Behavior

The onCompositionStart handler doesn't get called because Preact binds it to "CompositionStart" rather than "compositionstart"

The same applies for "compositionend" and "compositionupdate".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions