yyalim / digitinputs-react

A react component for digit inputs
https://yyalim.github.io/digitinputs-react/
11 stars 5 forks source link

Hi #1

Open mehran-dev opened 3 years ago

mehran-dev commented 3 years ago

I want to have focus on inputs initially - But there is no any Example or guide in docs - I found isFocused - and focused props on code - but it is hard to figure out how to use it properly -

if you add an example in doc I would really thank you . thanks for your attentions

yyalim commented 3 years ago

Hi @mehran-dev,

With current implementation it is not possible but it is good idea. I will add this feature on this weekend.

If you want to do it by yourself, I suggest you to find a way to override the logic on the linked line if focused prop asserted manually.

https://github.com/yyalim/digitinputs-react/blob/master/src/components/DigitInputs/DigitInputs.js#L39