solidjs-community/solid-primitives

[bug] input-mask does not treat my regex as I would expect

Ouverte

#261 ouverte le 24 nov. 2022

 (3 commentaires) (0 réaction) (1 personne assignée)TypeScript (153 forks)auto 404
help wanted

Métriques du dépôt

Stars
 (1 541 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur