Matt-Esch / virtual-dom

A Virtual DOM and diffing algorithm
MIT License
11.66k stars 779 forks source link

Input value attribute not being updated when view-model has an empty string... #441

Open ghost opened 6 years ago

ghost commented 6 years ago

If render a snippet of HTML like so:

<input type='text' value='foo' />

and then update the snippet to an empty string:

<input type='text' value='' />

the updated DOM retains the 'foo' value

conanjunn commented 5 years ago

I had the same problem.