Comments (1)
Though I do believe the source of the problem was correctly pointed out, the potential solution I initially suggested (use ChildContent?.HasDelegate == true
, instead of ChildContent != null
in FluentButton.razor) apparently wouldn't compile. I ended up just using an if statement in the wrapper's razor file and it worked:
@{
if (ChildContent != null) {
<FluentButton
IconStart="@_iconStart"
IconEnd="@_iconEnd"
Title="@Title"
OnClick="@OnClick"
@attributes="UnmatchedValues">
@ChildContent
</FluentButton>
} else {
<FluentButton
IconStart="@_iconStart"
IconEnd="@_iconEnd"
Title="@Title"
OnClick="@OnClick"
@attributes="UnmatchedValues"/>
}
}
from fluentui-blazor.
Related Issues (20)
- fix: Support Safari 15 (and earlier) HOT 6
- fix: Mouse click on FluentMultiSplitter bar changes position HOT 1
- feat: Add BarHandle parameter to FluentMultiSplitter HOT 8
- Scrolling not working with keyboard in AutoComplete HOT 4
- feat: add Timeline HOT 2
- SelectedItemChanged doesn't trigger after updating Items in FluentTreeView HOT 1
- fix: FluentOverflow initially paints and then repaints if an overflow is detected, leading to a flash in FluentOverflow HOT 1
- fix: FluentOverflow does not fit to container when ChildContent is modified HOT 1
- fix: FluentSelect ValueChanged called with wrong option HOT 1
- fix: FluentDataGrid GenerateHeaderOption.Sticky not working in Chrome on iPad HOT 2
- fix: Misleading cursor in toast action HOT 1
- fix: Nullable value not working in `FluentTimePicker`
- feat: set Items as optional in ItemsProvider HOT 12
- fix: Menu outside of the screen in `FluentMenu` HOT 1
- fix: Selected option not initially set in FluentSelect only in version 4.8.0 HOT 2
- fix: FluentDatePicker does not update value when current value is null and user selects date from drop down calendar in FluentDatePicker HOT 6
- FluentNavGroup 4.8.0 exception HOT 1
- fix: MaximumSelectedOptions not limiting in FluentAutocomplete HOT 3
- fix: FluentSwitch, FluentAutocomplete and serverals other components do not align at the middle when using inside FluentDataGrid HOT 1
- docs: add information about required nodeJS version HOT 1
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.