Replies: 1 comment
-
You can't limit a Combobox to only allow typing to select from the list it shows. You can use the FluentAutoComplete for that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to use fluent combo box options but i'm wondering if the component could be missing a function to handle when the option typed and entered is not found that the value is change so the error can be handled.
The problem happen when i want to modify an existing entity object i fill the data on screen and I fill a combo box with the initial enum value.
Here by example the combo box is load with the Variable value.
I have 3 possibles values ( null, Fixe and Variable ).
If the user type a wrong value like by example "sadas" and press "enter" the value behind is not changed for another value and the box stay with the green valid border.
If i press on the save button the entity is save with the initial value because it wasn't change by the user and nothing is indicating or blocking the user because the selection or data entered was wrong.
If i select the empty/null value the validation is called and a message is shown.
I don't have the problem when i add an entry because the value is set to null than the validation is triggered.
There is not EventCallbacks available to manage this use case.
<FluentCombobox Items=@Options TOption="Option<string?>" OptionText="@(i => i.Text?.ToString())" OptionValue="@(i => i.Value?.ToString())" OptionDisabled="@(i => i.Disabled)" OptionSelected="@(i => i.Selected)" SelectedOptionChanged="@SelectedOptionChanged" Height="300px" Autocomplete="ComboboxAutocomplete.Both" @attributes="@Attributes" > </FluentCombobox>
Beta Was this translation helpful? Give feedback.
All reactions