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

Dropdown events not triggering in JSX environment #682

Closed
nathan-barrett opened this issue Jun 23, 2020 · 2 comments
Closed

Dropdown events not triggering in JSX environment #682

nathan-barrett opened this issue Jun 23, 2020 · 2 comments
Labels
framework-react Issues with React framework

Comments

@nathan-barrett
Copy link

nathan-barrett commented Jun 23, 2020

I'm having trouble getting events for calcite-dropdown and calcite-dropdown-group to fire in particular onCalciteDropdownItemSelect and onCalciteDropwnClose. I provided a codepen below in a react environment with an example.

Link to codepen

if I removed the arrow function for the console.logs, the function will fire on first render.

Thanks for your help!

UPDATE

Looks like the types for different components are using camelcase like onCalciteDropdownSelect which i had trouble with earlier. If i change the event to: oncalciteDropdownSelect it works. So the types in the repo will need to be updated to reflect that.

@nathan-barrett nathan-barrett changed the title Dropdown events not triggering in JSX environemnt Dropdown events not triggering in JSX environment Jun 23, 2020
@macandcheese macandcheese added component-dropdown framework-react Issues with React framework labels Jun 23, 2020
@macandcheese
Copy link
Contributor

@nathan-barrett this was resolved here right? #693

@nathan-barrett
Copy link
Author

yeah, it was. We can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework-react Issues with React framework
Projects
None yet
Development

No branches or pull requests

2 participants