A
A
asdasdqwe2022-02-01 18:22:04
React
asdasdqwe, 2022-02-01 18:22:04

How to hide another when clicking on one element?

Wrote a small dropdown
https://codesandbox.io/s/funny-https-xj2xk?file=/s...

Everything works, but how, when clicking on one dropdown (and this is a component), hide another dropdown?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Shipin, 2022-02-01
@asdasdqwe

Perhaps this solution will help you.
https://blog.logrocket.com/building-a-custom-dropd...
Or:
https://stackoverflow.com/questions/54549294/react...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question