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

Extending closeDropdown() utility #39

Open
michaelgatuma opened this issue Jul 25, 2023 · 1 comment
Open

Extending closeDropdown() utility #39

michaelgatuma opened this issue Jul 25, 2023 · 1 comment

Comments

@michaelgatuma
Copy link

https://github.com/finsweet/ts-utils/blob/master/src/webflow/closeDropdown.ts

I think this utility closeDropdown() can be extended further to allow triggering w-open functionality also, I tested it and it worked...could be a great addition. What do you think @alexiglesias93?

image

@alexiglesias93
Copy link
Member

It's a good idea but I would create a separate function for that called toggleDropdown, otherwise this would be a breaking change.
PR contributions are welcome!

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

2 participants