Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Slider values in html are based on Culture #5105

Closed
FilipGaida99 opened this issue Oct 24, 2023 · 0 comments
Closed

[Bug]: Slider values in html are based on Culture #5105

FilipGaida99 opened this issue Oct 24, 2023 · 0 comments
Assignees
Labels
Type: Bug 🐞 Something isn't working
Projects
Milestone

Comments

@FilipGaida99
Copy link

FilipGaida99 commented Oct 24, 2023

Blazorise Version

1.3.1

What Blazorise provider are you running on?

Bootstrap5

Link to minimal reproduction, or a simple code snippet

During developing on Windows with Polish language (for double period '.' is changed to comma ',' ). When i make slider with doubles it doesn't use InvariantCulture.

Steps to reproduce

  1. Add slider like that.
    <Slider TValue="double" Min="0.0" Max="1" Step="Step" @bind-Value="testKnow"></Slider>
  2. Change culture to culture where doubles are used with comma ',' (i have similar statement to use invariant in Program.cs as hotfix)
    CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("pl-PL")
  3. The output is similar to <input id="0HMUKK2MMLIIV" type="range" class="form-range" step="0,0001" min="0" max="1">

What is expected?

<input id="0HMUKK2MMLIIV" type="range" class="form-range" step="0.0001" min="0" max="1">

What is actually happening?

<input id="0HMUKK2MMLIIV" type="range" class="form-range" step="0,0001" min="0" max="1">

This prevents sliding at all

What browsers are you seeing the problem on?

Chrome

Any additional comments?

No response

@FilipGaida99 FilipGaida99 added the Type: Bug 🐞 Something isn't working label Oct 24, 2023
@stsrki stsrki self-assigned this Oct 24, 2023
@stsrki stsrki added this to the 1.3 support milestone Oct 24, 2023
@stsrki stsrki added this to 🔙 Backlog in Support via automation Oct 24, 2023
@stsrki stsrki closed this as completed Nov 2, 2023
Support automation moved this from 🔙 Backlog to ✔ Done Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐞 Something isn't working
Projects
Support
  
✔ Done
Development

No branches or pull requests

2 participants