Skip to content

Commit

Permalink
LPS-89444 Mask needs to be applied always regardless of duplicate fie…
Browse files Browse the repository at this point in the history
…lds.
  • Loading branch information
brianikim authored and SamZiemer committed Jan 23, 2019
1 parent a016eae commit 4f093e3
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -81,7 +81,6 @@ AUI.add(

var numberMask = DDMNumeric.createNumberMask(numberMaskOptions);

instance.lastDataType = dataType;
instance.maskedInputController = DDMNumeric.vanillaTextMask(
{
inputElement: fieldNode.getDOM(),
Expand Down Expand Up @@ -148,10 +147,6 @@ AUI.add(
var fieldNode = instance.getInputNode();
var fieldSidebar = A.one('.' + CSS_SETTINGS_SIDEBAR + ' .liferay-ddm-form-field-numeric');

if (instance.maskedInputController && (instance.get('dataType') == instance.lastDataType)) {
return;
}

if (instance.maskedInputController && fieldSidebar) {
fieldNode = fieldSidebar.one('input');
}
Expand Down

0 comments on commit 4f093e3

Please sign in to comment.