Skip to content

Portal Event Bubbling Use Cases #19637

@gaearon

Description

@gaearon

This is a spillover from #11387.

The goal of this issue is not to argue about whether the current React's behavior makes sense in all situations. Rather, it is collect a list of use cases, both when the current behavior works well, and when it doesn't, so that they can inform the next iteration of the related APIs. We can't commit to any concrete timeframe on this at the moment, but a list like this will definitely reduce the amount of time that we'd need to spend to get up to speed on the problem space when we're ready to approach it.

If you'd like to contribute a use case, please comment with:

  • A name for your pattern (come up with something unique so we can refer to it later)
  • A brief description of the UI (but a screenshot is worth a thousand words)
  • A small CodeSandbox demo, if you want to make a stronger case
  • How React event bubbling behavior breaks (or helps) your case
    • Include any information about other pitfalls you encountered, be very specific
  • A workaround you are currently using, if any
    • If you tried some workarounds but they cause issues, let us know which ones

Please keep this thread on topic and let's keep general discussion in #11387. This is not a good thread for "+1" or requests to solve this faster — it's a thread for gathering research.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions