max-mapper/yo-yo

Problems with textarea

Closed this issue · 4 comments

It seems that there's a bug with keeping the value of textareas. A solution for it is described here:

patrick-steele-idem/morphdom#88 (comment)

You have a bit more context information at choojs/choo#253 (which is already linked from the first URL).

shama commented

Related issue: choojs/nanohtml#36

@shama do you see a problem with the following solution?

There's a line in yo-yo https://github.com/maxogden/yo-yo/blob/master/index.js#L31

If you flip the t/f you ge the expected outcome: https://esnextb.in/?gist=81944ffdfa6ebc00827d58d7c5a91441

I'm unable to reproduce this in morphdom under several variations of generating the html described.

I'm going to close this.

Thanks @shama!

tors commented

Thank you @shama!