Comments (8)
Hi,
Thanks for your report, but...
Please supply us with ready-to-run reproduction code in the form of something we can copy/paste, a (zipped) project structure or a GitHub repository.
We do not have capacity to craft or compose a reproduction for every issue that gets raised.
If no code or repository is provided, this issue will be closed in 3 days
Help us to help you. Thanks.
from fluentui-blazor.
Sure. The attached is the latest version of the your template with the starship-3 code from the MS site pasted into the home page to run in SSR mode and a Starship.cs model added.
In the example code the InputSelect populates Starship.Classification.
I added Starship.Classification2 with a FluentSelect right below the InputSelect on the page. One always works, the other never populates Model.Classification2 in the Submit method (I've tried several variations). If you uncomment the rendermode at the top to make it interactive it works correctly.
from fluentui-blazor.
Thanks for supplying the details. We'll taka a look soon.
from fluentui-blazor.
I did a bit of digging into the submit event in the browser and your project source.
The docs note that in SSR mode it is necessary to explicitly assign the Name parameter of the fluent components in forms. In your source code, in components like FluentTextField.razor, you can see the assignment of that parameter to the underlying component, "name=@name", in the component initialization. None of the list components in the List folder (FluentSelect.Razor, etc.) have that assignment in their definition.
When intercepting the submit event of the form in the browser (using the zip I attached above) it is possible to see that the name property of the InputSelect is (auto) configured to match the binding needed in the form processed by FormData and posted back. The Fluent List component below that has a blank name when submitted to FormData and is then not posted back.
I conjecture this lack of "name=@name" in the List component definitions is at least part of the issue I am seeing although I have not rebuilt the library to test.
Great components by the way. Loving the way they come together with the Blazor component model in the UI.
from fluentui-blazor.
I did not have time to look at this in depth yet, but was expecting the name
to be the culprit indeed.
The list based components (as all FluentComponentBase
components) implement the additional attributes collection so you should be able to specify the name
attribute yourself (for testing without rebuilding the library).
from fluentui-blazor.
That worked. Appreciate the assist.
from fluentui-blazor.
@rhealthyme I download the code and try to add Name to the FluentCombobox but it doesnt works, can you help me plis ?
from fluentui-blazor.
from fluentui-blazor.
Related Issues (20)
- fix: SetTotalItemCountAsync in PaginationState HOT 3
- feat: Add an option to align the filter to the right of the title in the Datagrid. HOT 2
- fix: Failed to fetch dynamically imported module: in Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lib.module.js HOT 2
- FluentUI-Blazor templet v 4.9.3 for VS 2022 HOT 5
- fix: Header not correctly aligned with RTL direction in FluentAccordionItem HOT 1
- fix: [FluentDataGrid data not loading] after ShowPanelAsync HandlePanel] HOT 5
- fix: RTL Problem in Accordion HOT 1
- FluentMenuButton (or FluentMenu with a separate button) are clipped by the bounds of the container HOT 2
- fix: FluentPopup can get hidden behind splitter HOT 4
- feat: add ability to have a preferred positioning option in FluentTooltip HOT 4
- fix: CurrentSelected in FluentTreeView HOT 3
- feat: Callback from `FluentDropZone` or `FluentDragContainer` when a drag ends with no valid drop target HOT 1
- feat: add auto-fit to DataGrid HOT 2
- fix: FluentWizard can navigate to disabled last step using default buttons HOT 2
- fix: PreventDismissOnOverlayClick = true not working in DialogService.ShowMessageBoxAsync HOT 1
- fix: Long page scrolls to center in DialogService.Show HOT 2
- fix: MinLength in FluentTextField Doesn't works HOT 1
- fix: Warning 'Initializer will be ignored ...' in browser console HOT 4
- fix: buttons in ColumnResizeOptions are inaccessible
- FluentDataGrid SelectColumn: No row events with ItemsProvider, DeselectAll reverts to previous state
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui-blazor.