Comments (6)
Thanks for the feedback.
I am not too familiar with React typings, but it seems like PropsWithoutRef<P> & RefAttributes<T>
would be a good solution. I will take a closer look.
from react-verification-input.
Thanks for looking at it!
Since the props don't contain ref
I think you can just append & RefAttributes<HTMLInputElement>
to them
from react-verification-input.
I decided to go with ForwardRefExoticComponent
since this is how the forwardRef
function is typed.
The change is released as version 2.0.1
. Let me know if it works for you.
Btw, do you think it would be a good idea to introduce a prop like:
delimiterChars=" -_"
I'm asking since the component by default already ignores blanks when pasting a value.
from react-verification-input.
Btw, do you think it would be a good idea to introduce a prop like:
delimiterChars=" -_"I'm asking since the component by default already ignores blanks when pasting a value.
Yes please, if you can!
from react-verification-input.
Another option would be to ignore everything that is not a valid character. I'm gonna give this some more thought.
from react-verification-input.
That might be a good option as well
from react-verification-input.
Related Issues (20)
- Fix broken github status badge
- Error when building in vite app HOT 5
- Add `onComplete` optional prop HOT 4
- Edge Browser Hide Password Toggle
- Needs ability to style the `vi__wrapper` div HOT 12
- OTP Autocomplete issue (Safari) HOT 2
- Can support the function of copying and pasting shortcut keys? HOT 2
- Make styles overridable by default HOT 1
- Make demo/docs website
- Move migration guide to docs website
- Add support for right-click and pasting code HOT 9
- Fix "mobile zoom" not working like regular input fields
- Meta tag info (README): make sure this is up to date and consider removing user-scalable=no
- disable spell check HOT 1
- broken input styles HOT 1
- adding custom class names should not remove default class names HOT 1
- Manually selecting one of the fields HOT 1
- Can't type or paste this code: 008003 HOT 2
- Add caret HOT 3
- enable syntax highlighting on docs website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-verification-input.