"No data found" message is hidden by "Loading …"

Web Tips Q & ACategory: Krajee Plugins"No data found" message is hidden by "Loading …"
etatoby asked 1 year ago

I set up the plugin in a simple way (data-depends, data-initialize=”true”, and data-url) but whenever I return an empty array from the URL, the child select remains stuck on “Loading …” instead of showing “No data found”.
Inspecting the HTML, I see that the option with “No data found” is correctly added to the select, but the “Loading …” one is not removed.
Looking at the source, the “Loading …” option is added in beforeSend:, but in the case of isEmpty(data) it is never removed, neither in success: nor in complete:
Am I missing something?

Login or register to contribute or comment.

Login   Register