lundi 11 septembre 2017

Why does textarea rows 0 breaks on internet explorer 11?

I've a simple setup.

I tried with ember to set the rows attribute from a textarea to 0. After that the internet explorer doesn't work properly.

I tried it with jQuery, and it works.

My ember component looks like this:

App.TextareaTestComponent = Ember.Component.extend({
    rows: 0
});

and my html like this:

<script type="text/x-handlebars" data-template-name="components/textarea-test">
        <textarea rows=></textarea>
</script>

When I set the rows to 1 or more the textarea works perfect but not with rows=0. Does anybody know why?

here are my examples:

Ember (doesn't work on IE11): http://ift.tt/2wTJ7yA

jQuery (works on IE11): http://ift.tt/2wjq9xU




Aucun commentaire:

Enregistrer un commentaire