File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/vee-validate/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import {
4444 lazyToRef ,
4545 unravel ,
4646} from './utils' ;
47- import { isCallable } from '../../shared' ;
47+ import { isCallable , isObject } from '../../shared' ;
4848import { FieldContextKey , FormContextKey , IS_ABSENT } from './symbols' ;
4949import { useFieldState } from './useFieldState' ;
5050import { refreshInspector , registerSingleFieldWithDevtools } from './devtools' ;
@@ -284,6 +284,10 @@ function _useField<TValue = unknown>(
284284 watch (
285285 valueProxy ,
286286 ( value , oldValue ) => {
287+ if ( ! isObject ( value ) ) {
288+ return ;
289+ }
290+
287291 if ( value === oldValue && isEqual ( value , oldValue ) ) {
288292 warn (
289293 'Detected a possible deep change on field `value` ref, for nested changes please either set the entire ref value or use `setValue` or `handleChange`.'
You can’t perform that action at this time.
0 commit comments