wavesoft / dot-dom

.dom is a tiny (512 byte) template engine that uses virtual DOM and some of react principles
Apache License 2.0
809 stars 53 forks source link

input({ type: 'text' }) is noop #44

Closed rauchg closed 5 years ago

rauchg commented 5 years ago

It seems that the type property doesn't get assigned for <input /> elements for some reason. Other properties work

rauchg commented 5 years ago

NVM just read your code, the problem is slightly different. The main issue is that if the attribute matches a default, you don't render it. Therefore, you make some CSS target selectors not work, which need the explicit property to be set.