Git Product home page Git Product logo

Comments (18)

dyve avatar dyve commented on July 29, 2024

Do you have an online demo?

On Tue, Feb 7, 2012 at 14:08, lashisu
[email protected]
wrote:

Hi,

mustMatch is not working when minChars is set to 3. It is starting to work on a single character. when we press 3-4 character quickly it stop working.

I have set it as below:-

mustMatch:true,
minChars: 3,

Regards,
Sushil


Reply to this email directly or view it on GitHub:
#10

from jquery-autocomplete.

lashisu avatar lashisu commented on July 29, 2024

Yes, I have and url is

http://dwwsclient.com/demo/

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

Thanks, it seems like there is indeed a bug there when minChars and
mustMatch are combined. I'll look into it.

On Wed, Feb 8, 2012 at 10:18, lashisu
[email protected]
wrote:

Yes, I have and url is

http://dwwsclient.com/demo/


Reply to this email directly or view it on GitHub:
#10 (comment)

from jquery-autocomplete.

lashisu avatar lashisu commented on July 29, 2024

Yes, It is fixed. But new issue has came out. When you set mustMatch and minChars, the selected value of textbox became empty on focusout.

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

Oops, you are right.

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

Fixed just now, please test in your own environment and report back when it's not working.

from jquery-autocomplete.

lashisu avatar lashisu commented on July 29, 2024

Now, Must matching is not working. Kindly update same in live demo and share demo url.

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

I'll write tests or demo's for this tomorrow. Sorry about the mess-up,
I think I changed something to optimize that had more effects than
planned.

Op 12 feb. 2012 om 10:15 heeft lashisu
[email protected]
het volgende geschreven:

Now, Must matching is not working. Kindly update same in live demo and share demo url.


Reply to this email directly or view it on GitHub:
#10 (comment)

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

I have reopened this because I want to make sure it is fixed. However, if I try the current version I see a working mustMatch. Perhaps I am using different parameters, please specify yours and explain what is wrong.

from jquery-autocomplete.

lashisu avatar lashisu commented on July 29, 2024

I have uploaded new version with same html & js code. Only plugins updated. Check it on this url. mustMatch is not working.

URL is

http://www.dwwsclient.com/demo/

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

I think I understand.

mustMatch WITHOUT selectFirst is workign fine.

When selectFirst AND mustMatch are set, and you type a text that cannot be found, but has given matches before, selectFirst selects the text that was matched earlier. tricky one.

In your demo, please see that typing newqqq in the first box gives the unwanted behavior. Typing xzzqqq, mustMatch works fine.

If you agree this is the problem, I will start working on a fix.

from jquery-autocomplete.

lashisu avatar lashisu commented on July 29, 2024

Yes, It is a problem. But in earlier version I have seen that while typing unmatched character input box became empty in mustMatch case. But in current version it is not behaving same. It should be empty on unmatched character.

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

OK, I'll start working on fix.

On Mon, Feb 13, 2012 at 07:05, lashisu
[email protected]
wrote:

Yes, It is a problem. But in earlier version I have seen that while typing unmatched character input box became empty in mustMatch case. But in current version it is not behaving same. It should be empty on unmatched character.


Reply to this email directly or view it on GitHub:
#10 (comment)

from jquery-autocomplete.

dyve avatar dyve commented on July 29, 2024

Due to optimization the results were kept even when mustMatch / minChars conditions were not met. Upon exiting, selectFirst took the first result, regardless of the current input value. This update should fix that. Thank you for testing, you are a great help.

from jquery-autocomplete.

lashisu avatar lashisu commented on July 29, 2024

It is not fixed yet. It has still some issues.

  1. In every case it returns values. If noMatch found it return a blank
      . In notMatch case autocomplete should hide.
    • In notMatch found case textbox value should be empty as it was in earlier version. (example is on http://www.paryatak.com).

    from jquery-autocomplete.

    dyve avatar dyve commented on July 29, 2024

    I agree with 1 (no empty ul)

    I have to investigate 2 in relation with minChars

    Sent from my iPhone

    Op 14 feb. 2012 om 06:30 heeft lashisu
    [email protected]
    het volgende geschreven:

    It is not fixed yet. It has still some issues.

    1. In every case it returns values. If noMatch found it return a blank
        . In notMatch case autocomplete should hide.
      • In notMatch found case textbox value should be empty as it was in earlier version. (example is on http://www.paryatak.com).

      Reply to this email directly or view it on GitHub:
      #10 (comment)

      from jquery-autocomplete.

      dyve avatar dyve commented on July 29, 2024

      I fixed 1.

      I don't know about 2. You are right that it used to work like that but I got several complaints form people that their typed string disappeared after a typo.

      from jquery-autocomplete.

      dyve avatar dyve commented on July 29, 2024

      I'm keeping #2 as it is for now, and closing this issue. If mustMatch is set, any invalid input will be cleared once the field has been left alone.

      from jquery-autocomplete.

      Related Issues (20)

      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.