You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vee-validate.esm.js?c1b4:4218 Uncaught TypeError: Cannot read property 'srcElement' of null
at fn (vee-validate.esm.js?c1b4:4218)
at later (vee-validate.esm.js?c1b4:2800)
here are lines 4217-4220:
...
// if its a DOM event, resolve the value, otherwise use the first parameter as the value.if(args.length===0||(isCallable(Event)&&args[0]instanceofEvent)||args[0].srcElement){args[0]=this$1.value;}
...
Here I use q-search + q-autocomplete as select with server-side search. When acTmp field is initialized with null, you get specified error message.
Fix is simple:
// if its a DOM event, resolve the value, otherwise use the first parameter as the value.
- if (args.length === 0 || (isCallable(Event) && args[0] instanceof Event) || args[0].srcElement) {+ if (args.length === 0 || (isCallable(Event) && args[0] instanceof Event) || args[0] && args[0].srcElement) {
args[0] = this$1.value;
}
The text was updated successfully, but these errors were encountered:
Versions:
Description:
here are lines 4217-4220:
Steps To Reproduce:
Here I use
q-search
+q-autocomplete
as select with server-side search. WhenacTmp
field is initialized withnull
, you get specified error message.Fix is simple:
The text was updated successfully, but these errors were encountered: