Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Sep 26, 2024
1 parent 95c9869 commit 74bd014
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/runtime-dom/src/patchProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import { patchStyle } from './modules/style'
import { patchAttr } from './modules/attrs'
import { patchDOMProp } from './modules/props'
import { patchEvent } from './modules/events'
import {
camelize,
isFunction,
isModelListener,
isOn,
isString,
} from '@vue/shared'
import { isFunction, isModelListener, isOn, isString } from '@vue/shared'
import type { RendererOptions } from '@vue/runtime-core'
import type { VueElement } from './apiCustomElement'

Expand Down Expand Up @@ -133,8 +127,7 @@ function shouldSetAsProp(
if (isNativeOn(key) && isString(value)) {
return false
}
// if el is a Vue custom element, it should be passed as a prop.
if (camelize(key) in el) {
if (key in el) {
return true
}

Expand Down

0 comments on commit 74bd014

Please sign in to comment.