fix(runtime-dom): allow force updating value bindings for controlled inputs
fix #1471
This commit is contained in:
@@ -8,7 +8,12 @@ import { RendererOptions } from '@vue/runtime-core'
|
||||
|
||||
const nativeOnRE = /^on[a-z]/
|
||||
|
||||
export const patchProp: RendererOptions<Node, Element>['patchProp'] = (
|
||||
type DOMRendererOptions = RendererOptions<Node, Element>
|
||||
|
||||
export const forcePatchProp: DOMRendererOptions['forcePatchProp'] = (_, key) =>
|
||||
key === 'value'
|
||||
|
||||
export const patchProp: DOMRendererOptions['patchProp'] = (
|
||||
el,
|
||||
key,
|
||||
prevValue,
|
||||
|
||||
Reference in New Issue
Block a user