fix: Clearing the currency format has no effect on the chart (#25238)

This commit is contained in:
Michael S. Molina 2023-09-11 08:26:43 -03:00 committed by GitHub
parent 0668d12e3b
commit 6f4e63162f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ export const CurrencyControl = ({
onChange={(symbolPosition: string) => {
onChange({ ...currency, symbolPosition });
}}
onClear={() => onChange({ ...currency, symbolPosition: undefined })}
value={currency?.symbolPosition}
allowClear
{...symbolSelectOverrideProps}
@ -118,6 +119,7 @@ export const CurrencyControl = ({
onChange={(symbol: string) => {
onChange({ ...currency, symbol });
}}
onClear={() => onChange({ ...currency, symbol: undefined })}
value={currency?.symbol}
allowClear
allowNewOptions