[Input-time-zone] setting "open" before render() throws an error #10491
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Actual Behavior
If you set "component.open=true" prop before calcite-input-time-zone component had it's render(), an exception will be throw here because
this.comboboxEl
is still undefined:calcite-design-system/packages/calcite-components/src/components/input-time-zone/input-time-zone.tsx
Line 202 in def59bb
Expected Behavior
There should not be an exception
Reproduction Sample
https://codepen.io/maxpatiiuk/pen/GRVqEmj?editors=1010
Reproduction Steps
.open=true
property or a calcite-input-time-zone after component's constructor() triggered but before render().Reproduction Version
2.13.0
Relevant Info
No response
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
No response
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: