We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 369c88f commit 3d613e3Copy full SHA for 3d613e3
src/van-plate.js
@@ -68,7 +68,7 @@ const elementProto = {
68
const tag = (name, ...args) => {
69
const [props, ...children] = protoOf(args[0] ?? 0) === objProto ? args : [{}, ...args]
70
const propsStr = Object.entries(props).map(([k, v]) => {
71
- const plainV = plainValue(v, k), lowerK = k.toLowerCase()
+ const plainV = plainValue(v, k), lowerK = k.startsWith("on") ? k.toLowerCase() : k
72
return typeof plainV === "boolean" ? (plainV ? " " + lowerK : "") :
73
// Disable setting attribute for function-valued properties (mostly event handlers),
74
// as they're usually not useful for SSR (server-side rendering).
0 commit comments