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

gw-dynamic-range.php: Fixed issue with decimal values on dynamic range. #858

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

saifsultanc
Copy link
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2649614006/68685

Summary

The Dynamic range snippet doesn't work on the front end, for the max value when a decimal is entered. The issue is because on the javascript we are typecasting the current value to integer: currentValue = parseInt( currentValue );. Overriding that fixes the issue.

BEFORE:
https://www.loom.com/share/c002e98098374e09b65e8782744c2062

AFTER: (~30 seconds)
https://www.loom.com/share/643a79c35fbc4c6986835a9e9dc52831

@saifsultanc saifsultanc added the bug Something isn't working label Jul 12, 2024
Copy link
Contributor

@claygriffiths claygriffiths left a comment

Choose a reason for hiding this comment

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

LGTM

@saifsultanc saifsultanc merged commit 06d8754 into master Jul 14, 2024
4 checks passed
@saifsultanc saifsultanc deleted the saif/fix/68685-fix-decimal-issue branch July 14, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants