You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
nathan-barrett
changed the title
Dropdown events not triggering in JSX environemnt
Dropdown events not triggering in JSX environment
Jun 23, 2020
I'm having trouble getting events for
calcite-dropdown
andcalcite-dropdown-group
to fire in particularonCalciteDropdownItemSelect
andonCalciteDropwnClose
. 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.The text was updated successfully, but these errors were encountered: