X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2FMoneyField.js;h=51c88004c4641e4e1f4880b71ffb13200099d602;hb=1fc8d2e55d6a1e3d7a229e83d62fe0b5237f3e09;hp=378a0a2ae069bcb943d747483b4b018f474cb3c5;hpb=7da60a63d558b60db4a8423536fcce9b5eed31d5;p=roojs1 diff --git a/Roo/bootstrap/MoneyField.js b/Roo/bootstrap/MoneyField.js index 378a0a2ae0..51c88004c4 100644 --- a/Roo/bootstrap/MoneyField.js +++ b/Roo/bootstrap/MoneyField.js @@ -105,6 +105,13 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { cls: 'hidden-number-input' }; + if( + this.maxLength && + Number.isInteger(this.maxLength * 1) + ) { + input.maxlength = this.maxLength; + } + if (this.name) { hiddenInput.name = this.name; }