appsmith
appsmith copied to clipboard
fix: Currency Input widget issues to truncate decimals on changing decimals allowed input
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:
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.