appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

fix: Currency Input widget issues to truncate decimals on changing decimals allowed input

Open prasad-madine opened this issue 7 months ago • 9 comments

Issue Link

Description:

I have raised this PR to ensure that currency input value decimals triggered quickly on changing decimals allowed value

As a user of the Currency Input widget, when I change the Decimals back to 0, the value does not automatically round off. Currently, I have to click inside the widget for the value to truncate the decimals according to decimals allowed.

Cypress video

https://github.com/user-attachments/assets/a9c7e64a-621b-4797-8bbe-9e79e2328603

Screenshots:

Screenshot from 2024-07-15 17-35-36 Screenshot from 2024-07-15 17-35-48

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Enhanced the Currency Input widget to dynamically adjust decimal formatting based on user-defined settings.
    • Implemented a comprehensive set of end-to-end tests for the Currency Input widget to ensure functionality across various decimal configurations.
  • Bug Fixes

    • Improved handling of decimal places in the Currency Input to ensure accuracy and responsiveness to user input changes.

prasad-madine avatar Jul 29 '24 05:07 prasad-madine