Fix focusing behavior on text fields