Skip to content

Commit 3bcd68d

Browse files
committed
fix performance regression noticed by @lukeed
1 parent 2b45656 commit 3bcd68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default function renderToString(vnode, context, opts, inner) {
134134
if (name==='dangerouslySetInnerHTML') {
135135
html = v && v.__html;
136136
}
137-
else if ((v || v===0 || v==='') && typeof v!=='object' && typeof v!=='function') {
137+
else if ((v || v===0 || v==='') && typeof v!=='function') {
138138
if (v===true || v==='') {
139139
v = name;
140140
// in non-xml mode, allow boolean attributes

0 commit comments

Comments
 (0)