bug: riot fails to render textarea in (IE11) #1625

Closed
Havunen opened this Issue Feb 25, 2016 · 2 comments

Projects

None yet

2 participants

@Havunen
Havunen commented Feb 25, 2016

Hi,

RiotJS 2.3.15 fails to render textarea when undefined is given as value in IE11, Google chrome v48 and Firefox v47 renders fine.

Simple test to reproduce this issue:
https://jsfiddle.net/y8v9k4mt/6/

Expected result:
textarea should be rendered with empty text.

Havunen

@Havunen Havunen changed the title from bug: riot fails to render textarea (IE11) when value is undefined to bug: riot fails to render textarea in (IE11) Feb 25, 2016
@Havunen
Havunen commented Feb 25, 2016

Also tested returning empty string, null, and text content all fails in IE11.

another test case:
https://jsfiddle.net/y8v9k4mt/7/

@aMarCruz aMarCruz added the bug label Feb 25, 2016
@aMarCruz aMarCruz self-assigned this Feb 25, 2016
@aMarCruz
Member

There's an extrange behavior with textarea values in IE. Issues has been reported by Angular users too, including errors in placeholder assignment. These problems will be solved in riot with #1626

@aMarCruz aMarCruz added the fixed label Feb 26, 2016
@GianlucaGuarini GianlucaGuarini pushed a commit that closed this issue Feb 27, 2016
@aMarCruz aMarCruz Closes #1625
Refactorization of lib/browser/tag/update.js.
In IE the value of `nodeValue` cannot be replaced, it will be available on the 'updated' event.
Prevents error in IE with `placeholder` and empty values in textarea.
2bdc2ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment