Closed mkardas98 closed 4 months ago
Fantastic report, @mkardas98, thank you so much!
I'll look into this and get back to you during weekend.
Hello @taflanidi. I hope you had a good weekend. Were you able to figure out anything about the issue described above?
Hi @mkardas98 Tough week 🙈 I'll come back to you asap
Hi @taflanidi, perhaps you have already managed to check this problem? I found another problem. When it uses the mask "[9999AA]" also 2 the keyboard automatically switches to uppercase.
Hello ! Any progress on this issue ?
A hack solution in UIKit that worked for me is setting someUITextView.autocapitalizationType = .none
InputMask.MaskedTextField(
...args
)
.autocapitalizationType(UITextAutocapitalizationType.none)
I am not sure about this solution because previously everything worked without this 🙂
@taflanidi could you please take a look when you have some free time?
Prerequisites
X
between the brackets on this line if you have done all of the following:input-mask
tag for similar problems.Describe the bug
When attempting to input text into the MaskedTextField component, the keyboard's Caps Lock is automatically enabled and remains enabled throughout the text entry process. Even after entering a letter, the Caps Lock remains on. However, if a single letter is entered, the Done button on the keyboard is pressed, and the field is re-entered for editing, the default lowercase letters are restored. Setting .autocapitalization(.none) does not rectify this issue. Additionally, you can manually disable Caps Lock, enter a single letter, and Caps Lock will be automatically re-enabled.
Steps to reproduce the behaviour:
Expected behaviour The keyboard should not automatically enable Caps Lock when entering text into the MaskedTextField. The .autocapitalization(.none) modifier should function as expected, ensuring that letters are not automatically capitalized.
Actual behaviour The Caps Lock is automatically enabled during text entry in the MaskedTextField and remains enabled throughout, despite using the .autocapitalization(.none) modifier.
Platform information
Additional context Below is the code snippet demonstrating the MaskedTextField implementation: