React-select: Can I add a mask while I'm writing on Input?

Created on 24 Apr 2017  路  6Comments  路  Source: JedWatson/react-select

Let me know if I can add some kind of mask/type while user is typing. I'm using Creatable and I need to specify a pattern to user create an option.

ex: ____/____ (this should be my "mask")

then user should create a new option like this: 2016/2017.

And I need to let user only type numbers.

I've read the docs but couldn't find nothing.

tks

issuenhancement issureviewed

Most helpful comment

Hi all, not so unique case. I got the same issue here. Needs a mask like AA99-999 on my Creatable.

looking for solutions. Ant update I let you know.

All 6 comments

Hi @joaoeffting We don't support the ability to mask some numbers by default. It seems like a unique situation, so will have to think about if we want this type of feature builtin. Mind opening a PR with a proposal?

Hi all, not so unique case. I got the same issue here. Needs a mask like AA99-999 on my Creatable.

looking for solutions. Ant update I let you know.

Any update on this? I can look into it as well.

I would also need an input mask.

need mask too

we need mask too

Was this page helpful?
0 / 5 - 0 ratings