Textarea loses current value in Firefox when cloned with jQuery

This bug has actually existed for about 5 years, but for various reasons it has not been fixed by the jQuery team. The official bug ticket is here: jQuery Ticket #3016 [closed bug: patchwelcome] and it is still a valid bug in Firefox 34.0.5.

I know that cloning a textarea is a super edge case, but if you happen to have to do it for some reason and your placeholders disappear in Firefox (which happened to me), it's because of this bug. I have put together an example on CodePen:

See the Pen Text area loses current value when cloned in Firefox by polarbirke (@polarbirke) on CodePen.

Happy debugging!

Changelog

  • Oct 20, 2019 Split blog articles and bookmarks
Post a comment If you post a tweet with a link to this page, it will appear here as a webmention (updated daily).

Webmentions

No mentions yet.