Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoComplete] Fix onNewRequest not firing on iOS #4291

Closed
wants to merge 2 commits into from

Conversation

markshust
Copy link
Contributor

@markshust markshust commented May 17, 2016

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Closes #4290

@mbrookes mbrookes changed the title [AutoComplete] onNewRequest doesn't fire within iOS devices #4290 [AutoComplete] Fix onNewRequest not firing on iOS Jun 12, 2016
@@ -325,7 +325,9 @@ class AutoComplete extends Component {

handleBlur = (event) => {
if (this.state.focusTextField && this.timerTouchTapCloseId === null) {
this.close();
setTimeout(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that handleBlur is executed before handleItemTouchTap

Interesting! In that case, should we defer the all if block into a setTimeout?
Shouldn't we also clear the timeout during the unmounting?

@oliviertassinari oliviertassinari added PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI and removed PR: Needs Review labels Nov 24, 2016
@oliviertassinari
Copy link
Member

I couldn't reproduce this behavior on an iOS10.1 iPhone 6 simulator.

@oliviertassinari oliviertassinari added Safari bug 🐛 Something doesn't work labels Nov 27, 2016
@skirunman
Copy link
Contributor

skirunman commented Nov 29, 2016

I can confirm we are still seeing this behavior running our Cordova app on iphone6 with iOS v10.11. Same behavior with iOS v9.3.x

Don't see this issue when running from iOS and accessing web browser version of our app using Safari mobile.

@janowsiany
Copy link
Contributor

Any progress on merging this PR? This happens on Cordova iOS. It is also worth to mention that this issue does not appear on longer item press.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants