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

Plugin does not work with shadcn Input component

Ouverte
#2 0 commentaires 5 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
35
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.