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

Clickable dropdown not opening #110

Open
yiliansource opened this issue Apr 22, 2021 · 3 comments
Open

Clickable dropdown not opening #110

yiliansource opened this issue Apr 22, 2021 · 3 comments

Comments

@yiliansource
Copy link

Currently, when attempting to open the clickable dropdowns, no dropdown appears.

@fanny
Copy link
Contributor

fanny commented Oct 19, 2021

I may be wrong, but I think since the eventlistener is associated with vanilla elements this isn't propagated to the virtual DOM elements(created by React), so we might need to create a component and use the onClick event to apply the expected CSS.

@patdavid
Copy link

patdavid commented Dec 7, 2023

Has there been any movement on this? The clickable dropdowns are still not responding.

@Josh-Cena
Copy link
Contributor

Hello, the linked doc page shows purely static markup. It doesn't attach any JS code. If you want to make it functional, you would need to call the dropdown function yourself, as exemplified here: https://github.com/facebookincubator/infima/blob/79b4f86e4d161a8a61205ab0bc4676f97460f9ae/packages/core/demo/index.html#L3033C9-L3041C12

You can test it out-of-the-box here: https://infima.dev/demo/#dropdown

We are keeping it open because it's still worthwhile to fix our doc page and make it less confusing. We are not interested in running that script on a page already using React and we'd rather show a native React integration, as Docusaurus itself employs.

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

4 participants