Skip to content

Commit 8eb3f99

Browse files
committed
Use vfjsFieldValueProp as the property to get the value of from the Event
1 parent 1af976c commit 8eb3f99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vfjs-field-mixin/methods/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ const helpers = {
7575
}
7676

7777
if (data instanceof Event) {
78-
if (data.target && typeof data.target.value !== 'undefined') {
79-
return this.setVfjsFieldModel(data.target.value);
78+
if (data.target && typeof data.target[this.vfjsFieldValueProp] !== 'undefined') {
79+
return this.setVfjsFieldModel(data.target[this.vfjsFieldValueProp]);
8080
}
8181

8282
return this.setVfjsFieldModel(undefined);

0 commit comments

Comments
 (0)