kartik-v / yii2-widget-depdrop

Widget that enables setting up dependent dropdowns with nested dependencies (sub repo split from yii2-widgets).
Other
81 stars 39 forks source link

placeholder for empty server response not working #84

Closed Commifreak closed 3 years ago

Commifreak commented 3 years ago

Prerequisites

Expected behavior and actual behavior

I set up SepDrop like the docs say - but this part is confusing: (https://demos.krajee.com/widget-details/depdrop#settings)

placeholder: string whether the dependent select has a default placeholder (with an empty value), when no records are found. You can set this to a label which will be displayed as an empty value. For optgroups this will be a disabled option. If you set this to null or empty string , it will not be displayed. Defaults to Select ....

placeholder: string the message to display when the ajax response returned from the server is null or an empty array. Defaults to No data found.

The settings key is double documented. When I leave it empty, the promised No data found is not displayed, when the server returns no result.

So:

Environment

Browsers

Operating System

Libraries

Isolating the problem

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/96492114-placeholder-for-empty-server-response-not-working?utm_campaign=plugin&utm_content=tracker%2F8183994&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F8183994&utm_medium=issues&utm_source=github).
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.