Bug fix: inputStringLength is not set back to 40

This caused a bug that clears the text when pressing backspace after
the keyboard is displayed again.
This commit is contained in:
Duy Tran Khanh committed 2022-01-12 07:02:05 +07:00
1 parent 82dc17cd9c
commit ef2e200e28
1 file changed
+1 -1
+1 -1
View File
@@ -691,7 +691,7 @@ int currentVisibility = 1;
[self.inputView becomeFirstResponder];
// Empty the input field so that user will no longer able to select text inside.
self.inputView.text = INPUT_SPACE_CHAR;
// Trigger a text field cursor lock
inputStringLength = INPUT_FULL_LENGTH;
#ifndef DEBUG_VISIBLE_TEXT_FIELD
self.inputView.alpha = 0.0f;