You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, an error is thrown when a select item has an empty value stating it can't be empty because it needs to be able to be set to empty to show the placeholder. However, in selects that don't need placeholders and don't need it to actually have values, this complicates things and requires more logic just to maintain the default behavior.
Example: if an app has a filtering system (to narrow down results) that use a Select to choose the field to filter by, the default, empty value means there is no specific filter to be applied, and therefore it should stay empty to not get sent to the server for processing.
This means the empty value serves a purpose, and is not just a mistake that will remove the placeholder.
For such cases, it would be beneficial to have a way to explicitly override the value so the error won't get thrown and the Select would keep working as intended.
Additional information
I intend to submit a PR for this feature.
I have already implemented and/or tested this feature.
The text was updated successfully, but these errors were encountered:
Describe the feature
Currently, an error is thrown when a select item has an empty value stating it can't be empty because it needs to be able to be set to empty to show the placeholder. However, in selects that don't need placeholders and don't need it to actually have values, this complicates things and requires more logic just to maintain the default behavior.
Example: if an app has a filtering system (to narrow down results) that use a Select to choose the field to filter by, the default, empty value means there is no specific filter to be applied, and therefore it should stay empty to not get sent to the server for processing.
This means the empty value serves a purpose, and is not just a mistake that will remove the placeholder.
For such cases, it would be beneficial to have a way to explicitly override the value so the error won't get thrown and the Select would keep working as intended.
Additional information
The text was updated successfully, but these errors were encountered: