mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
fix: Clearing the currency format has no effect on the chart (#25238)
This commit is contained in:
parent
0668d12e3b
commit
6f4e63162f
@ -107,6 +107,7 @@ export const CurrencyControl = ({
|
|||||||
onChange={(symbolPosition: string) => {
|
onChange={(symbolPosition: string) => {
|
||||||
onChange({ ...currency, symbolPosition });
|
onChange({ ...currency, symbolPosition });
|
||||||
}}
|
}}
|
||||||
|
onClear={() => onChange({ ...currency, symbolPosition: undefined })}
|
||||||
value={currency?.symbolPosition}
|
value={currency?.symbolPosition}
|
||||||
allowClear
|
allowClear
|
||||||
{...symbolSelectOverrideProps}
|
{...symbolSelectOverrideProps}
|
||||||
@ -118,6 +119,7 @@ export const CurrencyControl = ({
|
|||||||
onChange={(symbol: string) => {
|
onChange={(symbol: string) => {
|
||||||
onChange({ ...currency, symbol });
|
onChange({ ...currency, symbol });
|
||||||
}}
|
}}
|
||||||
|
onClear={() => onChange({ ...currency, symbol: undefined })}
|
||||||
value={currency?.symbol}
|
value={currency?.symbol}
|
||||||
allowClear
|
allowClear
|
||||||
allowNewOptions
|
allowNewOptions
|
||||||
|
Loading…
Reference in New Issue
Block a user