Skip to content

[Input-Date-Picker] valueAsDate array value not handled by watcher #10291

Closed as not planned
@maxpatiiuk

Description

@maxpatiiuk

Check existing issues

Actual Behavior

The type of valueAsDate is Date | Date[].

However, the watcher here has wrong type:

valueAsDateWatcher(valueAsDate: Date): void {
this.datePickerActiveDate = valueAsDate;

this.datePickerActiveDate has type Date, so assigning Date[] to is is an error

Expected Behavior

Update the watcher to handle the Date | Date[] property type

Reproduction Sample

Reproduction Steps

Reproduction Version

2.13.0-next.9

Relevant Info

No response

Regression?

No response

Priority impact

impact - p3 - not time sensitive

Impact

No response

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Maps SDK for JavaScript

Metadata

Metadata

Labels

ArcGIS Maps SDK for JavaScriptIssues logged by ArcGIS SDK for JavaScript team members.bugBug reports for broken functionality. Issues should include a reproduction of the bug.calcite-componentsIssues specific to the @esri/calcite-components package.impact - p3 - not time sensitiveUser set priority impact status of p3 - not time sensitive

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions