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
AJAX data source "the results could not be loaded" error #4355
Comments
Fixes select2#4355 Verified in Firefox & Chromium
+1 |
Tested on macos x, same issue. fixed by #4356. |
What's the temporary solution till this bug is fixed? |
A workable cover up for people that cant edit the source code due to loaded by bower / dependencies etc, but just want to hide the ugly message:
|
@vladkazantsev 's approach works for me :) |
@vladkazantsev doesn't work if you've already set an alternate language. Also it doesn't display the message correctly if there is an actual error to the search. If you're loading an alternate language file you could go into the file and change the errorLoading text, which would then affect every Select2 in your application, or you could generate a new language file with the changed errorLoading text to use just on the selects that have ajax search. |
One solution is to roll back to v.4.0.1 which does not have this issue as far as I can tell. |
@vladkazantsev approach works IF you don't have an alt language set, additionally if you DO have an error, it just sits there showing 'Searching...'. Ideally until this is resolved @bpromasmb's suggestion of downgrading to 4.0.1 resolves this. This has has been an issue for a year a working solution , can we have it merged please 🍒 ? |
+1 |
Please refrain from "+1" comments. Simply click 👍 to show your interest in an issue. |
Fixes #4355 Verified in Firefox & Chromium
I have the same problem. Is there a solution now? Can it be merged? Thank you! |
Have you updated to 4.0.6-rc.0? It should be fixed since #4356 was merged. |
Hey, I'll try the new version, thanks for the hint! |
Ah ok, I will update the docs. |
Prerequisites
master
branch of Select2Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see...
"The results could not be loaded." is displayed (then, after a while, the results are populated)
I was expecting...
"Searching.." displayed as more text is inputted
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: