Ngx-bootstrap: Daterangepicker initial value wrong pattern locale

Created on 24 Nov 2017  路  2Comments  路  Source: valor-software/ngx-bootstrap

Unfortunately not fix in beta9.
I try resolve add rangeInputFormat in bsconfig with palliative, but only work while I select date manualy.

Some settings are apparently only being applied after you have manually selected the date.

My congif

bsConfig = Object.assign({},
      {
        maxDate: new Date(),
        showWeekNumbers: false,
        rangeSeparator: ' || ',
        locale: 'ptBr',
        containerClass: 'theme-dark-blue',
        rangeInputFormat : 'DD-MM-YYYY'
      }
    );

Properties showWeekNumbers, locale and containerClass are applyed in load component.
Properties maxDate, rangeSeparatorand and rangeInputFormat are applyed after I select manualy the date.

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 2.0.0-beta.9
Angular: 5.0.3
Build system: Angular CLI 1.5.2

comp(datepicker)

Most helpful comment

I will be reworking setting locale, and working with initial vallues.i am completelly not happy with current implementation, plis composite components has race issues. I tried 3 diffferent approaches, but all sucks. So next week i will do DateAdapter for new and old datepickers

All 2 comments

I will be reworking setting locale, and working with initial vallues.i am completelly not happy with current implementation, plis composite components has race issues. I tried 3 diffferent approaches, but all sucks. So next week i will do DateAdapter for new and old datepickers

starting to work on this,
closing as duplicate of #2991

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phmello picture phmello  路  3Comments

KimBum picture KimBum  路  3Comments

ctrl-brk picture ctrl-brk  路  3Comments

srjkrl20011991 picture srjkrl20011991  路  3Comments

ghiscoding picture ghiscoding  路  3Comments