0👍
Change your binding expression from
:s_onchange="doo()"
to
:s_onchange="doo"
doo()
will call the function straight away at binding time and pass the result of that call to the s_onchange
prop, whereas doo
simply passes the function instance itself.
I should also mention, this situation should make use of events instead of passing a function with a prop (unless you have some specific reason why you require a function prop instead of an event).
- [Vuejs]-Why Vue-Router doesn't work with "." symbol?
- [Vuejs]-How do I populate auto generated input fields with Vue / Laravel
Source:stackexchange.com