fix(runtime-dom): support native onxxx handlers

close #927
This commit is contained in:
Evan You
2020-04-07 11:34:54 -04:00
parent cb504c287f
commit 2302dea162
3 changed files with 43 additions and 20 deletions

View File

@@ -29,13 +29,7 @@ export const patchProp: RendererOptions<Node, Element>['patchProp'] = (
if (isOn(key)) {
// ignore v-model listeners
if (key.indexOf('onUpdate:') < 0) {
patchEvent(
el,
key.slice(2).toLowerCase(),
prevValue,
nextValue,
parentComponent
)
patchEvent(el, key, prevValue, nextValue, parentComponent)
}
} else if (!isSVG && key in el) {
patchDOMProp(