Fix dropdown closing on iOS.