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

fix: prevent value empty string on slider right panel #3635

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

urmauur
Copy link
Member

@urmauur urmauur commented Sep 11, 2024

Describe Your Changes

Context

since we allow 0.5 instead 0,5 to avoid issue regarding region number format, we change input on slider right panel using input string, we need prevent empty string when on change and on blur value.

Solution

we just need check length value when onBlur and onChange and apply to minimum value and update test case including test when value empty string

Fixes Issues

Screen.Recording.2024-09-11.at.09.56.52.mov

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@urmauur urmauur added the type: bug Something isn't working label Sep 11, 2024
@urmauur urmauur added this to the v.0.6.0 milestone Sep 11, 2024
@urmauur urmauur self-assigned this Sep 11, 2024
@imtuyethan
Copy link
Contributor

You're doing this this sprint? @urmauur

@urmauur
Copy link
Member Author

urmauur commented Sep 11, 2024

You're doing this this sprint? @urmauur

yes this is important, bc will broke the app cc @louis-jan

Copy link
Contributor

Barecheck - Code coverage report

Total: 57.31%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@dan-homebrew
Copy link
Contributor

Closes issue raised in #3602 (comment)

Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

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

LGTM

@urmauur urmauur merged commit 2599f31 into dev Sep 12, 2024
9 checks passed
@urmauur urmauur deleted the fix/validate-onchange-slider-right-panel branch September 12, 2024 02:45
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
None yet
Development

Successfully merging this pull request may close these issues.

bug: prevent empty sting on input slider right panel
4 participants