-
Hi! I'm using 2024-03-17.13.30.24.movActual behavior: Desired behavior: Is there an easy way to make this work so that the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
hi @DeltaSPb, I am going to have the ability to control <IMaskInput
mask={mask}
overwrite={true}
placeholder={placeholder}
placeholderChar={placeholderChar}
type={"text"}
inputRef={inputRef}
value={value}
autoComplete={"off"}
onAccept={onChange}
prepareChar={(char, masked) => {
masked.overwrite = Boolean(masked.value) || char !== "-";
return char;
}}
blocks={{
DD: [{ mask: "0[00]" }, { mask: "-0[00]" }, { mask: "+0[00]" }],
MM: { mask: "0[0]" },
SS: { mask: "0[0]" },
MS: { mask: "0[000]" },
}}
/> |
Beta Was this translation helpful? Give feedback.
-
Oh, thank you. It really works! 2024-03-19.22.05.52.movIs it possible to avoid this behavior? |
Beta Was this translation helpful? Give feedback.
hi @DeltaSPb,
well, it's a hard one.
I am going to have the ability to control
overwrite
from child masks in v8.For now maybe custom dispatch could help.
Or toggle
overwrite
inprepareChar
depending on the char. It's a dirty hack but it might help.