Skip to content

[WC-2882] Use text input for number filter #1533

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

r0b1n
Copy link
Collaborator

@r0b1n r0b1n commented Apr 16, 2025

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

Input of type=number is having build it behavior for number parsing, this messes up with locale-specific number parsing, switch to type=text.
Bonus: highlight the input in red when number parsing was not successful.

@r0b1n r0b1n requested a review from a team as a code owner April 16, 2025 08:57
@r0b1n r0b1n changed the title Wc 2882/fix number parsing [WC-2882] Use text input for number filter (9.24) Apr 16, 2025
@r0b1n r0b1n changed the title [WC-2882] Use text input for number filter (9.24) [WC-2882] Use text input for number filter Apr 16, 2025
@gjulivan
Copy link
Collaborator

@HedwigAR changing type=number to type=text because javascript is not good with numbers.
this solves the issue, but please check if a11y is intact.

@r0b1n r0b1n force-pushed the wc-2882/fix-number-parsing branch 4 times, most recently from 7201bf7 to 1047bc6 Compare April 16, 2025 14:30
Copy link
Collaborator

@iobuhov iobuhov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But seems like prettier format and our changelog format is out of sync.

@r0b1n r0b1n force-pushed the wc-2882/fix-number-parsing branch from 5d425f4 to f347761 Compare April 25, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants