palantir/blueprint

Numeric input - Basic example: page crash on selecting default locale

Open

#4,876 opened on Aug 25, 2021

View on GitHub
 (0 comments) (1 reaction) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: documentationP2Type: bughelp wanted

Description

https://github.com/palantir/blueprint/blob/2db16b00fcf4f9eeb2defb0cb4f5b43a19c10762/packages/docs-app/src/examples/core-examples/numericInputBasicExample.tsx#L157

Low prio

In the docs section for Numeric input - Basic example, selecting any option in the Locale selector, then going back to default option results in page crash due to incorrect locale information provided.

Current: [{ label: "Default", value: "" }, ...LOCALES]

Expected: [{ label: "Default", value: "en-US" }, ...LOCALES] Suggesting "en-US" as convenience fallback.

cc: @adidahiya

Contributor guide