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

externalQuery and remote mode error with on-search parameters #400

Closed
1 task done
sgjackman opened this issue Sep 12, 2018 · 1 comment
Closed
1 task done

externalQuery and remote mode error with on-search parameters #400

sgjackman opened this issue Sep 12, 2018 · 1 comment
Assignees
Labels

Comments

@sgjackman
Copy link

Issue Type

  • Bug

Specs

Version 2.14.0
Chrome

Expected Behavior

I want to use remote mode with an external query field and a custom @on-search event to load my data from the server.

Actual Behaviour

Everything works, but it seems that this combination causes the @on-search event to fire early, so that the last character entered in the search field does not come through in the parameters.

Steps to Reproduce the Problem

I'm logging the parameters sent to @on-search method to the console, and the searchTerm is always one character short. You can see this in the jsfiddle below. Obviously this is a problem, because the server query is not what the user typed.

jsfiddle

https://jsfiddle.net/57a2a4ce/582/

xaksis added a commit that referenced this issue Sep 14, 2018
@xaksis xaksis self-assigned this Sep 14, 2018
@xaksis xaksis added the bug label Sep 14, 2018
@xaksis
Copy link
Owner

xaksis commented Sep 14, 2018

Hey @sgjackman, thanks for pointing this out. it is now fixed in v2.14.1. your jsfiddle is working too now.

@xaksis xaksis closed this as completed Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants