Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Jul 9, 2019
1 parent 2ab37ff commit c0f8185
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/inputmask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit c0f8185

Please sign in to comment.