From eba2cd04e0251290226df768fec967892b1a821f Mon Sep 17 00:00:00 2001 From: Olivier Brassard Date: Fri, 5 Jan 2024 15:17:06 -0500 Subject: [PATCH] Add numericGroupSeparator as a serializable property in inputmask plugin --- src/inputmask.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/inputmask.js b/src/inputmask.js index 3381840..0d0da30 100644 --- a/src/inputmask.js +++ b/src/inputmask.js @@ -93,6 +93,12 @@ function init(Survey) { category: "general", visible: false, }, + { + name: "numericGroupSeparator", + category: "general", + default: ",", + visible: false, + }, { name: "options", category: "general", @@ -159,7 +165,7 @@ function init(Survey) { surveyElement.inputMask === "currency" || surveyElement.inputMask === "decimal" ) { - options.groupSeparator = rootWidget.numericGroupSeparator; + options.groupSeparator = surveyElement.numericGroupSeparator || rootWidget.numericGroupSeparator; options.radixPoint = rootWidget.numericRadixPoint; options.autoGroup = rootWidget.numericAutoGroup; options.placeholder = rootWidget.numericPlaceholder;