monkey-style-guide 2.0.106 → 2.0.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3166,7 +3166,7 @@
3166
3166
  var inputChar = String.fromCharCode(event.charCode);
3167
3167
  if (this.currency || this.onlyNumber || this.percent) {
3168
3168
  pattern = /[0-9]/;
3169
- if (inputChar === '0' && !this.replaceZero(cmp)) {
3169
+ if (!this.onlyNumber && inputChar === '0' && !this.replaceZero(cmp)) {
3170
3170
  event.preventDefault();
3171
3171
  return;
3172
3172
  }