Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Problem with maxTags #38

Closed
Zegnat opened this issue Jun 4, 2012 · 1 comment
Closed

Problem with maxTags #38

Zegnat opened this issue Jun 4, 2012 · 1 comment
Labels

Comments

@Zegnat
Copy link

Zegnat commented Jun 4, 2012

When you are using autocomplete the script is bypassing the maxTags settings completely with _addTag() running from the autocomplete’s select event:

this.options.select = function (event, ui) {
    self.input.data('autoCompleteTag', true);
    clearTimeout(self.timer);
    if (ui.item.label === undefined)
        self._addTag(ui.item.value);
    else
         self._addTag(ui.item.label, ui.item.value);
    return false;
}

I might be able to submit a patch later, but don’t bet on it. Would be appreciated if someone else could pick this up and pull.

@hailwood
Copy link
Owner

Fixed in commit 645558d

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants