-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
'onSelect' return undefined or incorrect element when using search module #2059
Comments
There were fixed related to this in one of the last patch releases. I'm on my phone but check closed issues. Are you using latest? |
@jlukic Yes. I am using 1.11.6. And this could be reproduced when using the master version from download as well |
Thanks for the clarification. I'll take a look |
Investigating this now, thanks for your patience. |
I've reworked the offending method, it was a pretty poor implementation previously, and some of the variable names were a bit confusing. I've verified against your example using the new $.api({ mockResponse: 'foo'}); syntax which I've also added as a new feature. |
Available with |
* next: (32 commits) Semantic-Org#2092 rebuild dist Add comments to search settings Rlsnotes Semantic-Org#2059 Semantic-Org#2070 Fixes Semantic-Org#2059 Semantic-Org#2070 rewrite object search used in search module to be much less obtuse Fix debug Semantic-Org#2059 Semantic-Org#2070 Add mock response async, yahoooo related to Semantic-Org#2059 Semantic-Org#2070 Semantic-Org#2059 Finish ability to mock responses in API Similar Semantic-Org#2092 add ability to mock server response using function Semantic-Org#2092 RLSNOTES & Cred Remove debug Semantic-Org#2092 Semantic-Org#2092 Add onResponse callback to allow for response transformations Semantic-Org#2070 - dont continue loop unnecessarily, clarify variable names Add Semantic-Org#2113 Add accordion on event, update rlsnotes Publish tasks fail with latest git due to add syntax Rlsnotes 1.11.7 Build version 1.11.7 Backport flex fix for cards Semantic-Org#2069 Semantic-Org#2021 Semantic-Org#2105 More name consolidation Semantic-Org#2101 More obvious name for merge copy Semantic-Org#2101 NPM Update should only update default theme folder (not whole theme path) Semantic-Org#2101 ...
Cheers! |
Hi,
I am using search module for tag suggestion, here's html code
and this is js code
This is json returned from server.
All the results displayed correctly, I want do some js hack when clicking the element, so I use
onSelect
callback.'S10' is logged correctly, but 'S2' and 'S3' returned 'undefined' in console after click
More weird is when I click 'S1', console shows 'S10' element
Please take a look, thanks!
The text was updated successfully, but these errors were encountered: