fluentui-blazor icon indicating copy to clipboard operation
fluentui-blazor copied to clipboard

feat: Add support for binding to nullable object

Open svrooij opened this issue 1 year ago • 2 comments

🙋 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

svrooij avatar Dec 02 '24 10:12 svrooij

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

dvoituron avatar Dec 02 '24 11:12 dvoituron

This is connected to #2471

MarvinKlein1508 avatar Dec 04 '24 13:12 MarvinKlein1508

This should be done in v5 as far as I can tell.

MarvinKlein1508 avatar Sep 30 '25 17:09 MarvinKlein1508