solidjs-community/solid-primitives
[bug] input-mask does not treat my regex as I would expect
Open
#261 opened on Nov 24, 2022
help wanted
Repository metrics
- Stars
- (1,541 stars)
- PR merge metrics
- (PR metrics pending)
Description
Here is my codesandbox where I tried some experiments.
I just wanted to see if I can make the input accept any number between 0 and 255 and block the user's input whenever they're typing something that would result in an invalid value.
As you can see in the codesandbox, I've tried 3 different ways and they all fail to behave as desired in their own unique ways.