Skip to content

Ability to change the value as it is entered #4

@mfilteau

Description

@mfilteau

The IMaskInput component has callbacks (prepare and prepareChars) that can be used to modify the input value while it is entered by the user.

I have an application where I want the result to have uppercase letters while not requiring the user to actually type in uppercase.

It would be nice if the prepare callback would be made available so I can do:

custom: {
  mask: 'a0a 0a0',
  prepare: (value: string) => {
    return value?.toUppercase()
  },
},

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions