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

Problems with textarea

emanchado opened this issue · 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 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.

commented

Thank you @shama!