Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@mantine/core]: PinInput - some improvements #5704

Merged
merged 6 commits into from Feb 9, 2024

Conversation

kkaplita
Copy link
Contributor

@kkaplita kkaplita commented Feb 2, 2024

  • typing and pasting code problems
  • now you can enter a value not only from the first input (previously, entering a value in, for example, the third input would change the value in the first input, but the focus would shift to the next one, i.e., the fourth input)
  • when deleting a character in inputs, the values of subsequent inputs remain unchanged (previously, deleting a character in the middle of a PIN, for instance, would shift values from right to left in the inputs)
  • paste a value from the clipboard that has any whitespace or line breaks - fixed
  • added a few more tests

- typing and pasting code problems
- now you can enter a value not only from the first input (previously, entering a value in, for example, the third input would change the value in the first input, but the focus would shift to the next one, i.e., the fourth input)
- when deleting a character in inputs, the values of subsequent inputs remain unchanged (previously, deleting a character in the middle of a PIN, for instance, would shift values from right to left in the inputs)
- added a few more tests
@kkaplita kkaplita changed the title PinInput - some improvements [@mantine/core]: PinInput - some improvements Feb 6, 2024
@mellrebook
Copy link

I've had some issues with this component before, I was considering ditching it and writing my own from scratch because of it.
I've checked out this PR and resolved all that weirdness I had a problem with.

Thanks!

@rtivital rtivital merged commit 4be1392 into mantinedev:master Feb 9, 2024
1 check passed
@rtivital
Copy link
Member

rtivital commented Feb 9, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants