File tree 1 file changed +4
-2
lines changed
packages/runtime-dom/src/directives
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ import {
18
18
type AssignerFn = ( value : any ) => void
19
19
20
20
const getModelAssigner = ( vnode : VNode ) : AssignerFn => {
21
- const fn = vnode . props ! [ 'onUpdate:modelValue' ] || ( __COMPAT__ && vnode . props ! [ 'onModelCompat:input' ] )
21
+ const fn =
22
+ vnode . props ! [ 'onUpdate:modelValue' ] ||
23
+ ( __COMPAT__ && vnode . props ! [ 'onModelCompat:input' ] )
22
24
return isArray ( fn ) ? value => invokeArrayFns ( fn , value ) : fn
23
25
}
24
26
@@ -78,7 +80,7 @@ export const vModelText: ModelDirective<
78
80
el . _assign = getModelAssigner ( vnode )
79
81
// avoid clearing unresolved text. #2302
80
82
if ( ( el as any ) . composing ) return
81
- if ( document . activeElement === el ) {
83
+ if ( document . activeElement === el && el . type !== 'range' ) {
82
84
if ( lazy ) {
83
85
return
84
86
}
You can’t perform that action at this time.
0 commit comments