Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calcite-input-time-zone throws error on Chrome #10895

Open
2 of 6 tasks
richiecarmichael opened this issue Nov 27, 2024 · 3 comments
Open
2 of 6 tasks

calcite-input-time-zone throws error on Chrome #10895

richiecarmichael opened this issue Nov 27, 2024 · 3 comments
Labels
0 - new New issues that need assignment. ArcGIS Maps SDK for JavaScript Issues logged by ArcGIS SDK for JavaScript team members. blocked This issue is blocked by another issue. browser-chrome Issues tied to the last 2 versions of Chrome browser. 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 - p1 - need for current milestone User set priority impact status of p1 - need for current milestone needs triage Planning workflow - pending design/dev review.

Comments

@richiecarmichael
Copy link

richiecarmichael commented Nov 27, 2024

Check existing issues

Actual Behavior

calcite-input-time-zone crashes on initialization on Chrome and Edge. Works fine on FF and Safari.

Expected Behavior

Component does not crash.

Reproduction Sample

See below

Reproduction Steps

To reproduce failure with DateTimeFormat.

  1. Click here
  2. Enter the following code:
const t = new Intl.DateTimeFormat("en", {
  timeZone: "Factory",
  timeZoneName: "shortOffset",
});
  1. Click Run.

Reproduction Version

3.0.0

Relevant Info

No response

Regression?

Yes

Priority impact

impact - p1 - need for current milestone

Impact

Affects the TimeZoneLabel JSSDK widget when used on Chrome or Edge.

Calcite package

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

Esri team

ArcGIS Maps SDK for JavaScript

Reference

#66469 ValuePicker - Migrate to Calcite 3.0

// @jcfranco

@richiecarmichael richiecarmichael added 0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Nov 27, 2024
@github-actions github-actions bot added ArcGIS Maps SDK for JavaScript Issues logged by ArcGIS SDK for JavaScript team members. calcite-components Issues specific to the @esri/calcite-components package. impact - p1 - need for current milestone User set priority impact status of p1 - need for current milestone labels Nov 27, 2024
@jcfranco jcfranco changed the title calcite-input-time-zone calcite-input-time-zone throws error on Chrome Nov 27, 2024
@nCastle1

This comment was marked as outdated.

@jcfranco jcfranco added browser-chrome Issues tied to the last 2 versions of Chrome browser. blocked This issue is blocked by another issue. labels Dec 2, 2024
@jcfranco
Copy link
Member

jcfranco commented Dec 2, 2024

This seems related to a recent Chrome update where “Factory” is no longer a valid timeZone option in Intl.DateTimeFormat. I’ve filed a Chromium issue to track this.

@nCastle1, could you share the console error you’re encountering? I suspect it might be a different issue.

@nCastle1
Copy link

nCastle1 commented Dec 2, 2024

I investigated further, and I think the error was unrelated. I couldn't reproduce in codepen and narrowed down to an asset loading issue in test environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Maps SDK for JavaScript Issues logged by ArcGIS SDK for JavaScript team members. blocked This issue is blocked by another issue. browser-chrome Issues tied to the last 2 versions of Chrome browser. 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 - p1 - need for current milestone User set priority impact status of p1 - need for current milestone needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

3 participants