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

Support dynamic options for Select in Blazor. #2253

Open
atmgrifter00 opened this issue Jul 10, 2024 · 0 comments
Open

Support dynamic options for Select in Blazor. #2253

atmgrifter00 opened this issue Jul 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@atmgrifter00
Copy link
Contributor

atmgrifter00 commented Jul 10, 2024

🙋 Feature Request

We need to support dynamic options in Blazor for Select (see 'Filterable Select should support dynamic options').

😯 Problem to Solve

Unfortunately, supporting this feature in Blazor requires some research to land on the proper pattern to promote. Because of the reliance of requiring a client to handle an event while the Select component is in a non-default interactive state (displaying a dropdown), the default Blazor behavior will be to recreate the Select component when the user types something in the filter input of the dropdown, causing the dropdown to disappear. This means that in order to properly implement dynamic options with the Select we will require the client to implement a pattern that will avoid the default Blazor behavior or re-rendering the entire component that handles the event.

Microsoft outlines ways to avoid this in their docs. We should converge on the way we want to guide clients to handle this scenario, and as part of this work, update our guidance docs accordingly.

💁 Proposed Solution

I suspect we will likely push clients towards implementing the IHandleEvent interface, as it is a fairly light-weight solution. This obviously needs to be explored.

📋 Tasks

@atmgrifter00 atmgrifter00 added enhancement New feature or request triage New issue that needs to be reviewed labels Jul 10, 2024
@m-akinc m-akinc removed the triage New issue that needs to be reviewed label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Defined/Ready to Pickup
Development

No branches or pull requests

2 participants