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

Plugin does not work with shadcn Input component

未关闭
#2 0 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
35
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

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';`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。