checked that my feature request isn't already filled;
searched StackOverflow's input-mask tag for similar problems.
Summary
Switch the mask if the entered value doesn't fit into the current mask but fits into another. See the example.
Motivation
Current .prefix and .wholeString affinity calculation strategies do not entirely cover the frequent case, when mask switching requires both input prefix correction & is based on the text length.
.wholeString strategy will allow to choose the wider mask if all the available formats have the same prefix.
.prefix strategy won't allow to switch to wider mask.
Describe the solution you'd like
Add more AffinityCalculationStrategy cases with respect to the value length.
Prerequisites
X
between the brackets on this line if you have done all of the following:input-mask
tag for similar problems.Summary
Switch the mask if the entered value doesn't fit into the current mask but fits into another. See the example.
Motivation
Current
.prefix
and.wholeString
affinity calculation strategies do not entirely cover the frequent case, when mask switching requires both input prefix correction & is based on the text length..wholeString
strategy will allow to choose the wider mask if all the available formats have the same prefix..prefix
strategy won't allow to switch to wider mask.Describe the solution you'd like
Add more
AffinityCalculationStrategy
cases with respect to the value length.