Open balukantu143 opened 3 years ago
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.
`