V-calendar: Input value for range is not updated for date picker

Created on 21 Apr 2018  路  2Comments  路  Source: nathanreyes/v-calendar

Hello, I use date picker with ranges, when updating start of range calendar is updated, but input value is not. I created example for this: https://jsfiddle.net/maximzasorin/sknpqze5/, after clicking on the button, start of range is set to April 16, and calendar shows this, but input value does not change.

All 2 comments

You need to reset the range object instead of just changing its child property.

update () {
  // this.range.start = new Date(2018, 03, 16);
  this.range = {
    start: new Date(2018, 3, 16),
    end: this.range.end,
  }
}

@nathanreyes Thank you, that's exactly what I did, but in first case I was confused that the calendar was updated and the input field is not, why it happens?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eafomi4ev picture eafomi4ev  路  3Comments

rcascante picture rcascante  路  3Comments

hanhtv204 picture hanhtv204  路  4Comments

mika76 picture mika76  路  3Comments

miralize picture miralize  路  4Comments