max-mapper / yo-yo

A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

type attribute doubling on <input>

seangenabe opened this issue · comments

Running

(yo`<input type="checkbox">`).toString()

yields

'<input type="text" type="checkbox" />'

Using yo-yo v1.2.2.

@seangenabe Is that when ran on the server side?

Yes.

I am using choo and I had same issue. I had to update min-document module to latest version (2.19.0). Check out comments @ Raynos/min-document#41
Maybe this is related?

commented

seems like rm -rf node_modules && npm install should resolve this; semver should bump min-document in the tree

Closing as this is now fixed.