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

feat: Add support for binding to nullable object #2995

Open
svrooij opened this issue Dec 2, 2024 · 2 comments
Open

feat: Add support for binding to nullable object #2995

svrooij opened this issue Dec 2, 2024 · 2 comments
Labels
vNext For the next major version

Comments

@svrooij
Copy link
Contributor

svrooij commented Dec 2, 2024

🙋 Feature Request

If I have a FluentTextField it would be useful if it could be bound to an string? meaning that it might be not provided. Same for a FluentSelect, binding to a nullable object would mean there is no item selected.

🤔 Expected Behavior

Instead of forcing the binding value to be not nullable, if would be nice if it were to be ignored when bound to a nullable object and just show an empty state (placeholder)

😯 Current Behavior

You get a build error if you try to bind to a nullable object

💁 Possible Solution

🔦 Context

💻 Examples

@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Dec 2, 2024
@dvoituron
Copy link
Collaborator

This feature will be supported in the next major Release (v5).

@vnbaaij vnbaaij added vNext For the next major version and removed triage New issue. Needs to be looked at labels Dec 2, 2024
@MarvinKlein1508
Copy link
Contributor

This is connected to #2471

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vNext For the next major version
Projects
None yet
Development

No branches or pull requests

4 participants