code-forge-io / code-forge-io/react-input-mask

Plugin does not work with shadcn Input component

Đang mở
#2 0 bình luận 5 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
35
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Description:
- When using https://ui.shadcn.com/docs/components/input with react-input-mask, it does not mask the input

Steps to Reproduce:
- Install ui.shadcn.com with Vite. Add this code:

```
const { getInputProps } = useInputMask({
mask: 'One does not simply walk into AAAAAA',
});

return (


Overview



Label
{
// Your onChange handler gets the output of the hook (won't trigger if the input is invalid)
console.log(e.target.value);
}} />


);
```

Expected Behavior:
- Input should be masked

Actual Behavior:
- Input is not masked

Error message: No error message.

Note: Update documentation. Import only functions if :

`import { useInputMask } from '@code-forge/react-input-mask';`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.