From 2628c4e4a83c7bc96ff3506e765402e8c18ac896 Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Tue, 8 Oct 2024 20:26:01 +0900 Subject: [PATCH] fix: modify currencyDisplay to display the currency code --- packages/primevue/src/inputnumber/BaseInputNumber.vue | 2 +- packages/primevue/src/inputnumber/InputNumber.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/inputnumber/BaseInputNumber.vue b/packages/primevue/src/inputnumber/BaseInputNumber.vue index 8c9eb8ac1..b432bb99e 100644 --- a/packages/primevue/src/inputnumber/BaseInputNumber.vue +++ b/packages/primevue/src/inputnumber/BaseInputNumber.vue @@ -72,7 +72,7 @@ export default { }, currencyDisplay: { type: String, - default: undefined + default: 'code' }, useGrouping: { type: Boolean, diff --git a/packages/primevue/src/inputnumber/InputNumber.d.ts b/packages/primevue/src/inputnumber/InputNumber.d.ts index 13a0bedc6..150b46809 100755 --- a/packages/primevue/src/inputnumber/InputNumber.d.ts +++ b/packages/primevue/src/inputnumber/InputNumber.d.ts @@ -264,7 +264,7 @@ export interface InputNumberProps { currency?: string | undefined; /** * How to display the currency in currency formatting. Possible values are 'symbol' to use a localized currency symbol such as €, 'code' to use the ISO currency code, 'name' to use a localized currency name such as 'dollar'. - * @defaultValue symbol + * @defaultValue code */ currencyDisplay?: string | undefined; /**