InfomediaLtd / angular2-materialize

Angular 2 support for Materialize CSS framework.
https://infomedialtd.github.io/angular2-materialize/
MIT License
407 stars 140 forks source link

Pull request #272 broke initial datepicker binding #292

Closed ctytgat closed 7 years ago

ctytgat commented 7 years ago

See https://github.com/InfomediaLtd/angular2-materialize/pull/272

This seems to have broken something in the datepicker... When the datepicker is bound with a FormControl, the initial value is not displayed anymore. Works fine up to version 15.0.2.

For example:

<div class="input-field col s4">
    <input materialize="pickadate" [materializeParams]="[dateOptions]"
           id="activeFrom" type="text" formControlName="from"/>
    <label for="activeFrom">Actief van</label>
  </div>

and

this.form = fb.group({
  'from': new FormControl('06/07/2017'),
});
rubyboy commented 7 years ago

@criticalbh are you able to help with this? Thanks!

rubyboy commented 7 years ago

I've merged the PR from @criticalbh . @ctytgat are you able to confirm this is now fixed? Thanks.

bop10 commented 7 years ago

@rubyboy Is this is going to be fixed in 15.0.5? Thanks

rubyboy commented 7 years ago

@bop10 thanks heaps for checking on this. It helps me identify that the original PR was merged but no version was released due to some build issues. I've now fixed that and a new version (15.1.1) is available with this fix.