chore: check binding.value instead of just binding object (#5065)

This commit is contained in:
YOU 2017-03-02 15:16:38 +00:00 committed by Eduardo San Martin Morote
parent 2a8a777b11
commit d7287f4df8

View File

@ -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()
}
}