Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I implement a Select or Dropdown component? #320

Open
2 of 3 tasks
duochizhacai opened this issue Oct 23, 2023 · 0 comments
Open
2 of 3 tasks

How can I implement a Select or Dropdown component? #320

duochizhacai opened this issue Oct 23, 2023 · 0 comments

Comments

@duochizhacai
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Do you want this issue prioritized?

  • Yes, I have sponsored
  • Not urgent

Current Behavior

I'm very curious, through moti on the web, how should I implement a Select component, and how should I determine if it clicks on an element outside the component? Does moti support the global document.click event? By the way, I found that in the warehouse This example seems to be unavailable.https://github.com/nandorojo/moti/blob/master/docs/docs/examples/dropdown.md
When hovering to dropdown, the entire dropdown disappears. Do you know why?

Expected Behavior

No response

Steps To Reproduce

No response

Versions

- Moti: 0.26.0
- Reanimated: 3.5.4
- React Native: 0.72.6

Screenshots

No response

Reproduction

20231023-163036.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant