Skip to content

Cursor ignoring zindex #914

Description

Environment

react-native 0.64.0:
npm ls react-native-macos: 0.64.13
node: 17.0.1
npm: 8.1.0
yarn: N/A
xcodebuild: 13A1030d

Steps to reproduce the bug

If you have a popup covering a TextInput, if you hover over the overlayed TextInput it will show the text cursor.

Expected Behavior

Cursor should be based on top layer.

Actual Behavior

Text cursor shows for when hovering over a TextInput underneath the popup.

Reproducible Demo

https://github.com/jbcullis/test

Additional context

Doesn't matter about opacity, this also occurs when full opacity: 1 views are covering the TextInput.

Further, clicking a button that sits over the top of a TextInput will focus the TextInput.
Temporary workaround is to set editable to false on the TextInput when the UI container the TextInput is in the background.

IMG_5598

Activity

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

    Area: TextInputNeeds: Attention 👋An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot)

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions