-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Feature Request: Support for no client-side javascript #1178
Description
Hi there, we're using react-select in a project, but would like the option of degrading gracefully (or progressively enhancing, depending on your point of view) so that we still have a working select when there is no client-side javascript. Currently react-select just renders an unstyled and untyped input field in this case.
The aim would be that with some additional prop (e.g. allowNoClient) the select would render the currently hidden input as a and the componentDidMount method would set an additional state entry (e.g. hasClient). The render method would check both these values to determine how to render the input field. Use of this option may then only support a subset of the react-select functionality i.e. simple string options only, no async loading, but a developer would choose which was most important to them.