calcite-design-system icon indicating copy to clipboard operation
calcite-design-system copied to clipboard

Input date picker with range ignores valueAsDate parameter

Open arjanvanzutphen opened this issue 2 years ago • 0 comments

Actual Behavior

InputDatePicker with the range parameter ignores the valueAsDate parameter value and the input element stays empty. The single inputDatePicker honours the valueAsDate parameter with a pre filled date value in the input element image

Expected Behavior

The inputDatePicker element with the range parameters should contain the pre filled values when passing the [new Date(), new Date()] array in the valueAsDate parameter

Reproduction Sample

https://codepen.io/arjan_esrinl/pen/JjLVKwV?editors=1001

Reproduction Steps

  1. Open the codepen: https://codepen.io/arjan_esrinl/pen/JjLVKwV?editors=1001
  2. Notice the missing values in the second inputDatePicker

Reproduction Version

1.0.0-beta.91

Relevant Info

Windows 11 Chrome 104.0.5112.81 (Official Build) (64-bit) Firefox 95.0 (64-bit)

Regression?

No response

arjanvanzutphen avatar Aug 23 '22 19:08 arjanvanzutphen