Fix the bug where the text field would not receive the user input.