Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 3163f36

Browse files
author
Yvonne Yip
committed
Merge pull request #4 from atotic/patch-1
Pass value to custom validation function.
2 parents fbda98e + 0c19d25 commit 3163f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-input.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
} else if (this.validate.exec) {
218218
valid = this.validate.exec(this.inputValue);
219219
} else if (this.validate instanceof Function) {
220-
valid = this.validate.call(this.inputValue);
220+
valid = this.validate.call(this, this.inputValue);
221221
}
222222
this.invalid = !valid;
223223
},

0 commit comments

Comments
 (0)