palantir/blueprint

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

Open

#4876 aperta il 25 ago 2021

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)TypeScript (2167 fork)batch import
Domain: documentationP2Type: bughelp wanted

Metriche repository

Star
 (20.263 star)
Metriche merge PR
 (Merge medio 43g 10h) (27 PR mergiate in 30 g)

Descrizione

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

Guida contributor