Skip to content

(feature) preventDefault & stopPropagation #264

Open

Description

@nandorojo

Describe the feature request

These features are currently unimplemented onClick. Adding this here as a feature request. Happy to help taking a look at an implementation.

For a synchronous preventDefault in TextInput's onChange, I assume we need an upstream PR in core.

Activity

  1. changed the title [-]Feature request: `preventDefault` & `stopPropagation`[/-] [+](feature) `preventDefault` & `stopPropagation`[/+] on Jan 23, 2025
  2. necolas commented on Jan 23, 2025

    @necolas
    Contributor

    The event system in RN is in the early stages of a rethink to take advantage of the new architecture and align with the web. Until then we can't implement sync events or these other features

    cc @rubennorte

  3. rubennorte commented on Jan 23, 2025

    @rubennorte
    Member

    The event system in RN is in the early stages of a rethink to take advantage of the new architecture and align with the web. Until then we can't implement sync events or these other features

    cc @rubennorte

    in this case, the problem isn't only the event system, but also the fact that we need events to be dispatched synchronously from the UI thread to JS so we can implement preventDefault properly. That might take even longer than the event system revamp.

  4. nandorojo commented on Jan 23, 2025

    @nandorojo
    ContributorAuthor

    Thanks for the quick update. Happy to help / test anything when it’s in the early stages. The sync events will be an incredible addition to native.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: react-nativeA bug that originates in React NativefeatureFeature or technical request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions