GithubHelp home page GithubHelp logo

Comments (11)

davemyersworld avatar davemyersworld commented on May 31, 2024

I am also having this issue with the plugin. Is there a fix in the works. It is pretty critical.

from jquery-ui-extensions.

davemyersworld avatar davemyersworld commented on May 31, 2024

i made a change to selectFirst that solves the problem deleted chars issue, however, it is not an ideal solution. That being said, if you're interested, it's here:

https://github.com/davemyers/jquery-ui-extensions/blob/master/autocomplete/jquery.ui.autocomplete.selectFirst.js

from jquery-ui-extensions.

jfrux avatar jfrux commented on May 31, 2024

Works great dave, thanks for the fix... I had the same issue :) on short delayed autocompletes.

from jquery-ui-extensions.

scottgonzalez avatar scottgonzalez commented on May 31, 2024

I can't reproduce this error. Are you able to provide a page showing the problem?

from jquery-ui-extensions.

tyx avatar tyx commented on May 31, 2024

Hi Scott,

Here is a test page : http://staging.api.wishbed.fr/ac.html

Try to enter a long text as "Toulouse" as fast as you can and look the result value in the input

from jquery-ui-extensions.

scottgonzalez avatar scottgonzalez commented on May 31, 2024

Thanks, I'm able to reproduce the bug on that test page, though I have no idea what the underlying problem is. I'll be looking into this over the next few weeks as we're trying to merge this into the core of the plugin.

from jquery-ui-extensions.

robmaceachern avatar robmaceachern commented on May 31, 2024

Hey Scott. Was this ever investigated/fixed? I'm also experiencing the same symptoms when using autoFocus:true and a remote source with ui1.8.16 and core1.6.2

Edit: When setting the autocomplete delay to 0, the symptoms seem to go away when using autoFocus:true and remote.

from jquery-ui-extensions.

scottgonzalez avatar scottgonzalez commented on May 31, 2024

It was never tracked down. The test page that @tyx provided went down a few days later and we couldn't reproduce it locally.

from jquery-ui-extensions.

scottgonzalez avatar scottgonzalez commented on May 31, 2024

There's a bug filed against jQuery UI for this: http://bugs.jqueryui.com/ticket/7555

from jquery-ui-extensions.

davemyersworld avatar davemyersworld commented on May 31, 2024

Hey guys, so I don't quite recall the exact problem, but I think it was a race condition, something like this:

  • user types letter, ajax request is made
  • user types second letter, ajax request is made
  • ajax response from first letter comes back
  • selectFirst kicks in, selecting the first item, blurring focus on text input
  • on blur, jquery UI automatically sets the text input to the queried string AND ignores the second ajax response

I might be off a bit, but that's the general problem

from jquery-ui-extensions.

bmaltzan avatar bmaltzan commented on May 31, 2024

I had this problem with jquery-ui.1.8.16 too.
Upgrading to 1.9.pre fixed it.

from jquery-ui-extensions.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.