mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
chore: check binding.value instead of just binding object (#5065)
This commit is contained in:
parent
2a8a777b11
commit
d7287f4df8
@ -131,8 +131,8 @@ var app = new Vue({
|
||||
// before focusing on the input field.
|
||||
// https://vuejs.org/guide/custom-directive.html
|
||||
directives: {
|
||||
'todo-focus': function (el, value) {
|
||||
if (value) {
|
||||
'todo-focus': function (el, binding) {
|
||||
if (binding.value) {
|
||||
el.focus()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user