Skip to content

Commit 3d613e3

Browse files
authored
Update van-plate.js
1 parent 369c88f commit 3d613e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/van-plate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const elementProto = {
6868
const tag = (name, ...args) => {
6969
const [props, ...children] = protoOf(args[0] ?? 0) === objProto ? args : [{}, ...args]
7070
const propsStr = Object.entries(props).map(([k, v]) => {
71-
const plainV = plainValue(v, k), lowerK = k.toLowerCase()
71+
const plainV = plainValue(v, k), lowerK = k.startsWith("on") ? k.toLowerCase() : k
7272
return typeof plainV === "boolean" ? (plainV ? " " + lowerK : "") :
7373
// Disable setting attribute for function-valued properties (mostly event handlers),
7474
// as they're usually not useful for SSR (server-side rendering).

0 commit comments

Comments
 (0)