I have the following text input
<input type="text" name="item-name" value={{item.name}} onblur={{action "confirmName" value="target.value"}} />
How can I pass not only target.value
but also the related item to confirmName
?
What should I edit?
I found how to do it:
onblur={{action "confirmName" item1 item2}}
Unfortunately it seams impossible to pass the value.target.
The action arguments are given this way:
actions: {
confirmName: function(item1, item2, event) {
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.