From 07f82d9fecf2fb58f91b8721f243488a5c0891c0 Mon Sep 17 00:00:00 2001 From: tsv2013 Date: Tue, 21 Aug 2018 14:11:04 +0300 Subject: [PATCH 1/2] Added `autoUnmask`option - https://github.com/surveyjs/widgets/issues/74 --- src/inputmask.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/inputmask.js b/src/inputmask.js index cfadc787..24520d7a 100644 --- a/src/inputmask.js +++ b/src/inputmask.js @@ -9,6 +9,7 @@ function init(Survey) { numericDigitsOptional: false, numericPrefix: "$", numericPlaceholder: "0", + autoUnmask: true, widgetIsLoaded: function() { return typeof Inputmask != "undefined"; }, @@ -51,7 +52,9 @@ function init(Survey) { surveyElement.inputMask != "none" ? surveyElement.inputMask : surveyElement.inputFormat; - var options = {}; + var options = { + autoUnmask: rootWidget.autoUnmask + }; if (surveyElement.inputMask != "none") options.inputFormat = surveyElement.inputFormat; From 8d2be6f27d8dc5f9db3e8631b68d143bdaa788fe Mon Sep 17 00:00:00 2001 From: tsv2013 Date: Tue, 21 Aug 2018 17:19:49 +0300 Subject: [PATCH 2/2] Release: 1.0.39 --- CHANGELOG.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4afc27f2..755f8de0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [1.0.39](https://github.com/surveyjs/widgets/compare/v1.0.38...v1.0.39) (2018-08-21) + + + ## [1.0.38](https://github.com/surveyjs/widgets/compare/v1.0.37...v1.0.38) (2018-08-17) diff --git a/package.json b/package.json index 62c20b39..028d2f77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "surveyjs-widgets", - "version": "1.0.38", + "version": "1.0.39", "scripts": { "start": "npm run build && live-server", "watch": "webpack --env.buildType dev --watch",