Comments (5)
Hi.
I tried your code on version 6.15.0, which you claimed was working, but it does not work for me on that version.
Not on selecting nor on startup.
from mudblazor.
So I have discovered that updating the version of the project in which this works to 6.20.0 still works meaning this might not be version specific.
from mudblazor.
@ScarletKuro I got an Issue with this tho.
https://try.mudblazor.com/snippet/waweEAltolqLrvqt
When you have enums as values no matter what you choose, the first value gets displayed.
from mudblazor.
@ScarletKuro I got an Issue with this tho. https://try.mudblazor.com/snippet/waweEAltolqLrvqt
When you have enums as values no matter what you choose, the first value gets displayed.
There is a know bug that requires the Enum to start with one.
https://try.mudblazor.com/snippet/wYcyYKlXeHzwplGO
But I don' think this is related to this issue.
from mudblazor.
@ScarletKuro I got an Issue with this tho. https://try.mudblazor.com/snippet/waweEAltolqLrvqt
When you have enums as values no matter what you choose, the first value gets displayed.There is a know bug that requires the Enum to start with one. https://try.mudblazor.com/snippet/wYcyYKlXeHzwplGO
But I don' think this is related to this issue.
Using nullable Enum types worked well for me:
https://try.mudblazor.com/snippet/QEcoahklsvHFSiKk
<MudSelect @bind-Value="@timeUnit"
Variant="Variant.Outlined"
Label="Time Unit"
AnchorOrigin="Origin.BottomCenter"
Placeholder="Select a time unit"
Immediate>
@foreach (var item in Enum.GetValues(typeof(TimeUnit)))
{
<MudSelectItem Value="@((TimeUnit?)item)">@item</MudSelectItem>
}
</MudSelect>
@code {
TimeUnit? timeUnit = null;
public enum TimeUnit
{
Seconds,
Minutes,
Hours,
Days,
Years
}
}
from mudblazor.
Related Issues (20)
- Mud grid messing with my loop counter HOT 2
- MudDataGridPager: Add RenderFragment ChildContent HOT 1
- Inputs: inconsistent heights when the Label is not provided and the Variant property is set to either Text or Outlined HOT 8
- Responsive field label styling HOT 3
- MudText component with empty HtmlTag HOT 2
- MudDataGrid crashes with both Hideable and ColumnResizeMode="ResizeMode.Column"
- Issue with Multiple File Upload in MudFileUpload Component HOT 7
- SelectedValue in chipset returns empty or wrong value HOT 1
- MudProgressLinear Vertical setting does not show anything at all HOT 2
- MudSelect background color not visible behind the label.
- MudSelect swallows "Enter" OnKeyDown event HOT 1
- MudFileUpload File Drop Zone (ActivatorContent) Issue with MudBlazor 7.x.x HOT 8
- `MudNumericField`: Support numbers in scientific notation
- flex-xs-column doesn't seem to work HOT 2
- Adding adornment to a text field shows scrollbar HOT 4
- TreeItemData design issues HOT 1
- MudNumericField Typo Does Not Work
- MudMenu won't close automatically HOT 7
- MudToggleGroup Not Working HOT 7
- Can't Upgrade to v7+ HOT 4
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 mudblazor.