From aea83a493d5aadd1c9e16eeb269214a8a460acb4 Mon Sep 17 00:00:00 2001 From: Batuhan Tomo Date: Tue, 7 May 2024 16:57:27 +0300 Subject: [PATCH 1/3] Fix #6584: _locale fix --- components/lib/inputnumber/InputNumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index d5224ddb69..b5a4385d04 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -1133,7 +1133,7 @@ export const InputNumber = React.memo( useUpdateEffect(() => { constructParser(); changeValue(); - }, [props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]); + }, [_locale, props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]); useUpdateEffect(() => { changeValue(); From d2772b388f2f435bd3481c6f926d74b60422d58c Mon Sep 17 00:00:00 2001 From: Batuhan Tomo Date: Tue, 7 May 2024 16:57:46 +0300 Subject: [PATCH 2/3] Revert "Fix #6584: _locale fix" This reverts commit aea83a493d5aadd1c9e16eeb269214a8a460acb4. --- components/lib/inputnumber/InputNumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index b5a4385d04..d5224ddb69 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -1133,7 +1133,7 @@ export const InputNumber = React.memo( useUpdateEffect(() => { constructParser(); changeValue(); - }, [_locale, props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]); + }, [props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]); useUpdateEffect(() => { changeValue(); From b76f5f133537163f7aaaa1df7abeb67cce857375 Mon Sep 17 00:00:00 2001 From: Batuhan Tomo Date: Tue, 7 May 2024 16:58:23 +0300 Subject: [PATCH 3/3] Fix #6584: _locale fix --- components/lib/inputnumber/InputNumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index d5224ddb69..b5a4385d04 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -1133,7 +1133,7 @@ export const InputNumber = React.memo( useUpdateEffect(() => { constructParser(); changeValue(); - }, [props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]); + }, [_locale, props.locale, props.localeMatcher, props.mode, props.currency, props.currencyDisplay, props.useGrouping, props.minFractionDigits, props.maxFractionDigits, props.suffix, props.prefix]); useUpdateEffect(() => { changeValue();