From c0f818515981df6be1ea0ef6ec7c8a1480fdeb84 Mon Sep 17 00:00:00 2001 From: dmitrykurmanov Date: Tue, 9 Jul 2019 14:17:58 +0300 Subject: [PATCH] fix for the https://surveyjs.answerdesk.io/ticket/details/T2305 --- src/inputmask.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/inputmask.js b/src/inputmask.js index ad32972f..a506c312 100644 --- a/src/inputmask.js +++ b/src/inputmask.js @@ -88,6 +88,12 @@ function init(Survey) { Inputmask(mask, options).mask(el); + el.onblur = function() { + if (surveyElement.value === el.inputmask.getemptymask()) { + surveyElement.value = ""; + } + }; + el.oninput = function() { surveyElement.customWidgetData.isNeedRender = true; };