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 have a dropdown and with few values and to call a method on dropdown value change. on changing the dropdown value, the function is not invoking.
I am unable to figure out the exact issue. Below is the code and let me know are there any errors.
It's quite difficult to help you out with so little info. There's nothing obviously wrong in your code excerpt, though it could be something as simple as a typo (ex. Dorpdown vs. Dropdown).
We have no idea of where your "wireup" function is called or how your components are set up.
Could you build a fiddle (ex. using jsfiddle) with enough code to reproduce the issue?
You can use this as a starting point: https://jsfiddle.net/nzt7hkba/2/ (I've copied some of your code there)
What version of Ractive are you using?
Which browser are you using?
As an aside, there's no need to have an event fire to call a method on the ractive instance. You can call it directly from the event listener in the template with @this or its alias @ e.g. <select on-change="@.invokeDropdownChange()">.
I have a dropdown and with few values and to call a method on dropdown value change. on changing the dropdown value, the function is not invoking.
I am unable to figure out the exact issue. Below is the code and let me know are there any errors.
`
The text was updated successfully, but these errors were encountered: