Closed
Description
Version
2.6.8
Reproduction link
https://codepen.io/zhangenming/pen/GexZQK
Steps to reproduce
<input :value="price" @input="e=>price=e.target.value">
Compiled:
with(this){return _c('input',{domProps:{"value":price},on:{"input":e=>price=e.target.value}})}
<input :value="price" @input="function f(e){price=e.target.value}">// this wont' be work
Compiled:
with(this){return _c('input',{domProps:{"value":price},on:{"input":function($event){function f(e){price=e.target.value}}}})}
What is expected?
can be work
What is actually happening?
this wont' be work