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
Is your feature request related to a problem? Please describe.
I added a "None" option (<mat-option>None</mat-option>), so users can select null/empty, whenever a select is not required (and if the user want to select nothing). So far so good.
However, this Angular component should ignore this specific mat-option since this option has no value attribute assign to it and therefor if no results are found the component should display the noEntriesFoundLabel text eg. "No matching ledger found" in my example.
Describe the solution you'd like
This Angular component should ignore the empty mat-option (mat-option without any value) and then still show me: "No search results" or "No matching ledger found" when the search did indeed return an empty array. Basically keep the noEntriesFoundLabel functionality working as expected.
AH see, yes maybe that is correct way of implementing.. Ideally I would like to have it automated, but OK we could also introduce an additional additionalOptionOffset setting.
Is your feature request related to a problem? Please describe.
I added a "None" option (
<mat-option>None</mat-option>
), so users can select null/empty, whenever a select is not required (and if the user want to select nothing). So far so good.However, this Angular component should ignore this specific
mat-option
since this option has no value attribute assign to it and therefor if no results are found the component should display thenoEntriesFoundLabel
text eg. "No matching ledger found" in my example.Describe the solution you'd like
This Angular component should ignore the empty mat-option (mat-option without any value) and then still show me: "No search results" or "No matching ledger found" when the search did indeed return an empty array. Basically keep the
noEntriesFoundLabel
functionality working as expected.Describe alternatives you've considered
I can't think of any, I follow the official Angular implementation to set a None option: https://material.angular.io/components/select/overview#form-field-features
Additional context
Due to the fact I have
<mat-option>--</mat-option>
, it will never show me thenoEntriesFoundLabel
text :(And yes, I do want an empty mat-option in my drop-down.
Ideally, this None option should despite being at the top not be the default option when pressing "Enter" after a search.
The text was updated successfully, but these errors were encountered: