Any button inside of a form with a click event will cause a page reload, I'm not sure if this is desirable.
I think it would be more appropriate for the button to have a type="submit" attribute for this to occur
<form>
<button onclick={click}>click</button>
</form>
<script>
click () { console.log('click'); }
</script>
Chrome
3.0.0 and 3.0.1
How would you tag this issue?
You can put type="button", because button default type here is submit
@rongxike thank you for your clear answer!
@shouston3 auto pteventDefault feature has been deprecated in Riot 3.0. Pls check our release note, too.
http://riotjs.com/release-notes/#november-22-2016
Makes sense, thanks for the fast response
Most helpful comment
You can put type="button", because button default type here is submit