Skip to content

Bug - [Slider with Input] - [should accept , as comma for non en US locales] #12052

@KKoukiou

Description

@KKoukiou

Describe the problem
This is an issue with

  • Patternfly 6

When using , if the adjacent input is initialized with a non-English decimal separator (comma, e.g. "50,2"), the component breaks: the slider/input get out of sync and/or parsing fails. This happens even when the page/parent container has a non-EN lang (e.g. lang="el").

Affected components: Slider (with isInputVisible, value, inputValue)

How do you reproduce the problem?
https://codesandbox.io/p/sandbox/3kn8jh?file=%2Findex.tsx

Expected behavior
The input next to the slider should accept and display localized decimal separators in line with the container/page lang.

The slider should internally normalize user input (comma or dot) and maintain a numeric state.

Is this issue blocking you?
No, I am now normalizing the input myself.

What is your product and what release date are you targeting?
anaconda installer, no specific target


Jira Issue: PF-2789

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Ready to assign

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions