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

Plugin does not work with shadcn Input component

Open
#2 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
35
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.