Coder Social home page Coder Social logo

Comments (5)

ScarletKuro avatar ScarletKuro commented on August 24, 2024

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.

izzyjere avatar izzyjere commented on August 24, 2024

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.

kasgithub8 avatar kasgithub8 commented on August 24, 2024

@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 avatar ScarletKuro commented on August 24, 2024

@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.

tojkuv avatar tojkuv commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.