Skip to content

Concurrent mode iOS hover behaviour #14535

Closed

Description

@subhero24

I hope this is the place to submit issues regarding concurrent mode.
I don't know if this is a bug or intended behaviour, but I have a situation where the my react app behaves differently depending on the use of concurrent mode.

Here is a link to a codesandbox demo: https://codesandbox.io/s/5xl0vnx11p

The behaviour on mobile Safari on iOS (12.1.2) is different whether using ReactDOM.render vs ReactDOM.createRoot. When ReactDOM.render is used, a tap results in an alert and after the alert is dismissed, the hover styles are applied. When using ReactDOM.createRoot, a tap results in the hover styles being applied. A second tap is needed to invoke the click handler.

(This double tap behaviour from iOS is described here)

Shouldn't the two render methods behave the same in this regard? or is this really intended behaviour?

BTW: A setTimout arround the mouseEnter event handler body does make ReactDOM.createRoot behave the same way as ReactDOM.render

Activity

  1. gaearon commented on Jan 23, 2019

    @gaearon
    Collaborator
  2. added 3 commits that reference this issue on Jan 23, 2019
    d494deb
    4e90da5
    adf0948
  3. gaearon commented on Mar 24, 2021

    @gaearon
    Collaborator

    I can't reproduce this anymore. Did iOS change something?

  4. subhero24 commented on Mar 25, 2021

    @subhero24
    Author

    I also can not reproduce this issue anymore. Guess an iOS update fixed it. Thanks for looking into it!

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

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