Skip to content

How do you implement the dropdown in react? #1671

Discussion options

You must be logged in to vote

Hi, there seems to be an issue with initTE not receiving a list of already initiated components. We will have to fix this. For now you can try to make sure that the method was called only once, for example:

  const initialized = useRef(false)

  useEffect(() => {
    setTimeout(() => {
      if (!initialized .current) {
        initTE({ Dropdown })
      }
      initialized .current = true
    }, 500)
  }, []) 

Sorry for the inconvenience.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fayedbleh13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants