Skip to content

Regex used to convert oninput to oninputcapture is too broad #3572

Closed
@jramanat-oracle

Description

@jramanat-oracle
  • Check if updating to the latest Preact version resolves the issue

Describe the bug
The change in #3562 was intended to convert oninput to oninputCapture. However, because it is using /^oninput/, it actually ends up converting oninput* to oninputCapture. This breaks functionality for custom elements that might be exposing CustomEvents that happen to start with "input". i.e.

<my-custom-element oninputAction={...}/>

used to call addEventListener('inputAction', ...), but will now add a capture listener for the 'input' event.

To Reproduce

See above.

Expected behavior

See above.

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