Skip to content

Commit c0f8185

Browse files
1 parent 2ab37ff commit c0f8185

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/inputmask.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ function init(Survey) {
8888

8989
Inputmask(mask, options).mask(el);
9090

91+
el.onblur = function() {
92+
if (surveyElement.value === el.inputmask.getemptymask()) {
93+
surveyElement.value = "";
94+
}
95+
};
96+
9197
el.oninput = function() {
9298
surveyElement.customWidgetData.isNeedRender = true;
9399
};

0 commit comments

Comments
 (0)