Skip to content

[Bug]: onTextChanged action gets triggered on typing numbers after 2 decimal places #21363

@shadabbuchh

Description

@shadabbuchh

Is there an existing issue for this?

  • I have searched the existing issues

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.

Steps To Reproduce

  1. D&D a Currency Input widget.
  2. Select 2 for Decimals allowed property.
  3. Not set some action for the onTextChanged property.
  4. Now place the cursor after the second decimal place in the widget.
  5. Press any number on the keyboard.

Expected: The onTextChanged property should not get triggered as only 2 decimal places are allowed.
Actual: The action is getting triggered.

Public Sample App

No response

Environment

Production

Issue video log

https://www.loom.com/share/380537946d364e4288a0036d269621d7

Version

Cloud

Metadata

Metadata

Labels

BugSomething isn't workingCurrency Input WidgetIssues related to currency input widgetLowAn issue that is neither critical nor breaks a user flowNeeds TriagingNeeds attention from maintainers to triageProductionQuery Widgets & IDE PodAll issues related to Query, JS, Eval, Widgets & IDEUX ImprovementWidgets & Accelerators PodIssues related to widgets & AcceleratorsWidgets ProductThis label groups issues related to widgets

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions