Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bind-SelectedOption is null when using bind-SelectedOption:after FluentComboBox #2101

Closed
MarvinKlein1508 opened this issue May 26, 2024 · 0 comments · Fixed by #2102
Closed
Labels
triage New issue. Needs to be looked at

Comments

@MarvinKlein1508
Copy link
Contributor

🐛 Bug Report

When using a FluentComboBox in combination with bind-SelectedOption:after the binded option will be set null when using a different instance of the bound object type which is not part of the Items parameter.

💻 Repro or Code Sample

I've created a small sample repo which can be found here:
https://github.com/MarvinKlein1508/FluentComboBoxIssue

🤔 Expected Behavior

I would expect the component to select the item with the corresponding CountryId since both of them are the same.

😯 Current Behavior

The component sets the value to null.

🔦 Context

In my case I'm using a static list of countries in memory which contains all possible countries. However when fetching the object from the database a new instance is assigned to my object based on the provided SQL query.

🌍 Your Environment

.NET 8 with Firefox. VS17.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage New issue. Needs to be looked at
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant