aonawale / ember-material-components

Google's Material Design Components for Ember JS apps
https://aonawale.github.io/ember-material-components
MIT License
2 stars 1 forks source link

mdc-textfield Value not being passed through #5

Open MrChriZ opened 6 years ago

MrChriZ commented 6 years ago

The mdc-textfield value does not appear to be being passed through to the underlying input box

MrChriZ commented 6 years ago

Twiddle demonstrating issue: https://ember-twiddle.com/35d0b69786a18e150a013cd5ecadd388?openFiles=controllers.application.js%2C

MrChriZ commented 6 years ago

I think the solution for this is to change the mdc-textfield.hbs file so that instead of It uses {{input...}}

{{input type="text" id=inputId class="mdc-text-field__input" value=value placeholder=placeholder disabled=isDisabled required=isRequired minlength=minLength aria-label=ariaLabel aria-controls=ariaControls}}

MrChriZ commented 6 years ago

And the same for textarea: {{textarea rows=rows cols=cols id=inputId class="mdc-text-field__input" value=value placeholder=placeholder disabled=isDisabled required=isRequired minlength=minLength aria-label=ariaLabel aria-controls=ariaControls}}