You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
searched StackOverflow's 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:
Navigate to the view containing the MaskedTextField.
Tap on the MaskedTextField to begin text input.
Observe that the Caps Lock on the keyboard is automatically enabled and remains on during text entry.
Enter a single letter, press Done on the keyboard, then re-enter the field for editing.
Observe that the default lowercase letters are now restored.
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
OS version: iOS 17
Library version: 7.3.2
Language: Swift 5.9
Device: iPad Pro (12.9-inch) (6th generation)
Additional context
Below is the code snippet demonstrating the MaskedTextField implementation:
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.
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:
The text was updated successfully, but these errors were encountered: