code-forge-io / code-forge-io/react-input-mask
Plugin does not work with shadcn Input component
- Lenguaje dominante
- TypeScript
- Estrellas
- 35
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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';`
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.