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:
How to set default placeholder?
How to set placeholder when DepDrop disables a field due to empty server response?
[ ] The bug happens consistently across all tested browsers
[ ] This bug happens when using yii2-widget-depdrop without other plugins.
---
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).
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.
Prerequisites
master
branch of yii2-widget-depdrop.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)
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