Skip to content

[dev-v5] fix: Define DefaultValues for generic components does not work #4698

@MarvinKlein1508

Description

@MarvinKlein1508

🐛 Bug Report

Setting default values for generci components does not work.

I tried all thinkable approaches:

options.DefaultValues.For<FluentAutocomplete<dynamic, dynamic>().Set(p => p.Width, "100%");
options.DefaultValues.For<FluentAutocomplete<object, object>().Set(p => p.Width, "100%");
options.DefaultValues.For<FluentAutocomplete<string, string>().Set(p => p.Width, "100%");

🤔 Expected Behavior

I expect the default values to be defined at least when I specify the exact same generic combination as in my razor files.

😯 Current Behavior

All default values will be ignores for generic components.

💁 Possible Solution

🔦 Context

I want to use this feature for FluentAutocomplete to always set Width and MaxAutoHeight. Or within FluentDataGrid to always use Table mode.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions