Skip to content

How to prevent overwriting typed numbers in "Date format with mask" example? #81

@demark

Description

@demark

Currently in "Date format with mask" example ( __-__-____ ) if for instance it has a value
"11-22-333" if I put a caret here: 11-|22-3333 and type "44"
it will overwrite "22" => 11-44-|3333.
Seems like all "Date format" examples have such behavior.
How to prevent this? Eg. block any input until you remove at least one number.

Another bug I noticed with this example:

  1. Type "11-22-3333|"
  2. Move caret to "11-22|-3333" and remove (backspace) two numbers => "11|-33-33__"
  3. Type "44" => "11-44-|33__" (expected result: "11-44-|3333").

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions