Browse Source

fix(input): 修复支付宝小程序 idcard 类型输入问题

eiinu 2 years ago
parent
commit
4051d45bbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/__VUE/input/index.taro.vue

+ 1 - 1
src/packages/__VUE/input/index.taro.vue

@@ -11,7 +11,7 @@
             class="input-text"
             ref="inputRef"
             :style="styles"
-            :maxlength="maxLength ? maxLength : -1"
+            :maxlength="maxLength ? maxLength : undefined"
             :placeholder="placeholder"
             :disabled="disabled"
             :readonly="readonly"