Skip to content

Conversation

@rodrigowbazevedo
Copy link

Add support for optional character, just need to put an ? in the pattern after the character you want to be optional.

With this feature it's possible to create patterns like this (11) 1?1111-1111, this pattern solve the problem we have in Brazil creating mask for phone numbers.

This PR is built on top of PR #39

 - Create remove method and use it in backspace and input in a selection
   replace with placeholders on isRevealingMask: false and delete on true
 - Won't set placeholders when do backspace or input in a selection
 - Just move de selection to the next editable on input not after the input
@adiq
Copy link

adiq commented Apr 23, 2019

Any plans for that feature? @insin

@digital-spectr
Copy link

Any plans for that feature?

@g0shed
Copy link

g0shed commented Apr 15, 2021

can we get this implemented or is this project dead?

@natanaelsimoes
Copy link

+1

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.

6 participants