Open
Description
Which package(s) are the source of the bug?
@maskito/phone
Description
strict=false β
- Open https://maskito.dev/addons/phone/API?strict=false
- Focus
- Paste
+7 123
Textfield contains +7 123
strict=true β
- Open https://maskito.dev/addons/phone/API?strict=true
- Focus
- Paste
+7 123
Textfield still contains only +7
.
Expected: textfield contains +7 123
Why ?
strict=true
is only about attempts to enter phone number of another country (see [countryIsoCode]
property).
Paste of incomplete phone number (with +
& countryPrefix
) of selected country should be accepted.
Pay attention β οΈ
Textfield contains +7
=> Paste +7123
=> Textfield contains +7 123
Textfield contains +7
=> Paste 7123
(incomplete phone number without +
) => Textfield contains +7 7123
Maskito version
3.2.0