Skip to content

Commit

Permalink
Add numericGroupSeparator as a serializable property in inputmask plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Brassard committed Jan 5, 2024
1 parent e8b9cff commit eba2cd0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/inputmask.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ function init(Survey) {
category: "general",
visible: false,
},
{
name: "numericGroupSeparator",
category: "general",
default: ",",
visible: false,
},
{
name: "options",
category: "general",
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit eba2cd0

Please sign in to comment.