fix focus bug on iOS