Plugin does not work with shadcn Input component
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
The report provides a Vite reproduction using shadcn/ui Input and useInputMask; start by reproducing that example and reading the package's documented hook usage. Verify the masking behavior, then update the documentation with the named import and a working shadcn Input example.
Written by the indexing model from the issue text.
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 (
<div>
<h1>Overview</h1>
<div className="w-[240px] mt-12">
<Label>Label</Label>
<Input name="number" {...getInputProps} onChange={e => {
// Your onChange handler gets the output of the hook (won't trigger if the input is invalid)
console.log(e.target.value);
}} />
</div>
</div>
);
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';
- Dominant language
- TypeScript
- Stars
- 35
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from code-forge-io/react-input-mask
-
Optional charactersOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
code-forge-io/react-input-mask#4 · 1 comment ·
All issues in code-forge-io/react-input-mask
Similar issues
-
area:cli area:security bug priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
"code source" and "numerique.gouv" links: "new window" mention duplicated in the accessible nameOpenaccessibility
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
numerique-gouv/lasuite-landingpage#315 ·
Maintainers usually reply within 1 day
-
needs:triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
HyeokjaeChoi/vaultme#585 ·
Maintainers usually reply within 1 day
-
enhancement priority/P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
beettlle/pi-smart-router#200 ·