Skip to content

Commit

Permalink
chore: add npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
wssgcg1213 committed Sep 13, 2023
1 parent ff65fd9 commit 304e739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.com/
2 changes: 1 addition & 1 deletion packages/rax-textinput/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const TextInput: ForwardRefExoticComponent<TextInputProps> = 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';
}
Expand Down

0 comments on commit 304e739

Please sign in to comment.