【问题标题】:ng-otp-input doesn't support well with input 0ng-otp-input 不能很好地支持输入 0
【发布时间】:2019-07-19 14:02:19
【问题描述】:

我使用了ng-otp-input npm,当我在文本框中输入 0 时,它不会移动/聚焦在下一个文本框上。

我试过了:

<ng-otp-input (onInputChange)="onOtpChange($event)" [config]="config">
</ng-otp-input>

config = {
 allowNumbersOnly: false,
 length: 4,
 inputStyles: {
  'color': 'white',
  'width': '30px',
  'height': '50px',
  'border': 'none',
  'background': 'rgba(255, 255, 255, 0.25)'
 }
}

【问题讨论】:

    标签: angular6


    【解决方案1】:

    我认为这是版本问题。我建议您删除此 npm 并安装新的更新版本。

    【讨论】:

      猜你喜欢
      • 2023-03-10
      • 2022-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-12
      相关资源
      最近更新 更多