seb-oss/green

Datepicker: Sets inner value but doesn't update input field

Closed this issue · 0 comments

Bug already reported?

  • I confirm that I have checked if the bug already has been reported

For which framework/library you are reporting the bug

Angular

Component name

datepicker

Description

Datepicker sets year value, when day wasn't chosen in the calendar dropdown and Input component isn't updated. Minimal repo https://github.com/Foteno/datepicker-example

Steps To Reproduce

  1. Press the calendar dropdown button
  2. Choose another year
  3. Click off the dropdown (outside it) so it closes
  4. Notice that Year was set (console.log), but Input field isn't updated for the year

Current Behaviour

Year isn't updated in the input field, but inner value is changed

Expected Behaviour

Either:

  1. Input field is updated OR
  2. inner value isn't changed