appsmith
appsmith copied to clipboard
fix:onTextChanged action gets triggered on typing numbers after 2 dec…
Description:
In the Currency Input widget if we allow 2 decimal places and set a onTextChanged action, then on typing numbers after the 2nd decimal place the action gets triggered.
Summary by CodeRabbit
-
Bug Fixes
- Improved
CurrencyInputWidget
to correctly handle fractional part lengths, ensuring it respects the specified decimal places.
- Improved
PR Type
Bug fix
Description
- Implemented a fix to prevent the
onTextChanged
action from being triggered when typing numbers after the allowed decimal places in the Currency Input widget. - Added logic to split the input value and validate the length of the fractional part against the specified decimal places.
💡 PR-Agent usage: Comment
/help
on the PR to get a list of all available PR-Agent tools and their descriptions