question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: why FluentInputBase.cs and not Blazor's InputBase.cs?

See original GitHub issue

Just found out about the existence of this package today. I think it’s pretty cool as it makes it simpler to adopt the FAST Fluent components in a Blazor project 😃.

Navigating through the code it came to my attention the fact that all input-like components (for ex. FluentTextField) derive from a FluentInputBase.cs (link), which is almost an exact, line-by-line duplicate of Blazor’s InputBase.cs (link) base class for input elements. I was wondering what was the reason for this divergence? Is the plan to eventually make all input components in this package derive from the latter?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vnbaaijcommented, Sep 28, 2021

With .NET 6 the requirement for an EditContext is no longer there (https://github.com/dotnet/aspnetcore/commit/afacc8740c40bf465da9b9a34914a2d88d243b3c). We should change to derive from InputBase

0reactions
EisenbergEffectcommented, Nov 9, 2021

Closing this since I think we answered the question. We can revisit code changes at a later point based on future Blazor releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow FieldIdentifier to be passed to InputBase and ...
The unfortunate part here is that TValue needs to be specified and has to be compile time expression for the generated code to...
Read more >
InputBase.cs - dotnet/aspnetcore
NET framework for building modern cloud-based web applications on Windows, Mac, or Linux. - aspnetcore/src/Components/Web/src/Forms/InputBase.cs at main ...
Read more >
How to override InputBase<T> Value in Blazor, in order to ...
The only workaround I found at the moment is to copy the source code of InputBase.cs into a custom class InputBaseVirtual.cs and then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found