Provide second argument to validator.error with bind:checked errors

pull/7738/head
Rich Harris 9 years ago committed by GitHub
parent 13f1c6e87b
commit 0d18c4a6d5

@ -25,7 +25,7 @@ export default function validateElement ( validator, node ) {
}
if ( getType( validator, node ) !== 'checkbox' ) {
validator.error( `'checked' binding can only be used with <input type="checkbox">` );
validator.error( `'checked' binding can only be used with <input type="checkbox">`, attribute.start );
}
}

Loading…
Cancel
Save