From 304e739b45d5504aa2abd0fc385ae7cf9e79eacf Mon Sep 17 00:00:00 2001 From: ZeroLing Date: Wed, 13 Sep 2023 19:39:58 +0800 Subject: [PATCH] chore: add npmrc --- .npmrc | 1 + packages/rax-textinput/src/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..40b36117 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.com/ diff --git a/packages/rax-textinput/src/index.tsx b/packages/rax-textinput/src/index.tsx index a827c619..ed067e10 100644 --- a/packages/rax-textinput/src/index.tsx +++ b/packages/rax-textinput/src/index.tsx @@ -109,7 +109,7 @@ const TextInput: ForwardRefExoticComponent = forwardRef( if (isMiniApp && !isWeb) { const basicSupportTypes = ['text', 'number', 'idcard', 'digit']; // Other types, like numberpad, we can check it with canIUse - if (basicSupportTypes.indexOf(type) > -1 && !my.canIUse(`input.type.${type}`)) { + if (basicSupportTypes.indexOf(type) === -1 && !my.canIUse(`input.type.${type}`)) { // If not support, fallback to text type = 'text'; }