Skip to content

Commit

Permalink
Merge pull request #340 from obrassard/master
Browse files Browse the repository at this point in the history
Add numericGroupSeparator as a serializable property in inputmask plugin
  • Loading branch information
andrewtelnov authored Jan 15, 2024
2 parents 003565f + eba2cd0 commit 4955dde
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 4955dde

Please sign in to comment.