Textinput: Fixed the enable method. Fixes #5447.