Replies: 2 comments
-
Hi! Thank you for your kind words 💜 Your reproduction link leads to a 404 page. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Moshyfawn you are right, sorry. It was private. Edited original post. You should be able to see it now: https://codesandbox.io/p/sandbox/dark-flower-xq5l5t?file=%2Fsrc%2FApp.tsx%3A56%2C14 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
\ >= 7.43.0
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/dark-flower-xq5l5t?file=%2Fsrc%2FApp.tsx%3A56%2C14
Steps to reproduce
First of all, thanks to all the contributors and maintainers of this library which has been very helpful to me these last years. You are doing an amazing work.
I think this could be an issue or maybe I was relying on a bug. I have created a sandbox to reproduce the error. I think this could be the commit that is introducing this possible typing error.
After upgrading I found an error in my codebase and I started investigating a bit. I think this could be an unintended typing error or I'm doing a misuse of the
pattern
when the value is a number. What I wanted to do with this pattern is to alert the user when introducing letters like thee
for exponential values which native HTML input allows even if you set thetype
attribute tonumber
.I don't want to allow my users to write the letter
E
ore
for exponential values.Steps to reproduce:
register
function to register an input that hasvalueAsNumber
to true and try to add apattern
like in the code sandbox exampleIf this is not a bug and I'm doing something wrong, I would like to know how to achieve what I said with the current typings of the register function.
Expected behaviour
It shouldn't type the
pattern
asundefined
when valueAsNumber istrue
.What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions