-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
I have 2 pages that my team has been actively using since last 1 year (without any problems)
Each page has an input box where some data is typed using a barcode scanner.
Immediately at the end of the scan a CrLf is pushed causing the OnSubmit logic to trigger.
Last 3-4 days, there is a new bug observed that behaves like this:
If CrLf (Enter) is pressed a just a few milliseconds after the text has been typed, then many times the JS code does not pickup the Input.text string. A blank string is assumed and pushed downstream.
However, if we wait for a second or two, and then press CrLf/Enter, then everything is well and normal.
I tried to replicate this problem by creating a new app and the same problem repeated here too.
Please look into this asap because this is causing a lot of data problems at our end.
For now, I have created a React Custom Widget and it has solved my problem.
But this bug needs to be resolved nonetheless.
Thanks
Steps To Reproduce
Add 2 widgets:
Input Box & Text
In the onSubmit section of the Input Box, type
Text1.setText(Input1.text);
Now type something in the textbox and immediately press Enter to Submit.
You will see that the quicker you press Enter, the more times the Text stays Blank.
Which means a blank string is set.
Increase the gap between the last alphabet & Enter, and you will see that data is passed to Text1 as expected.
Public Sample App
https://app.appsmith.com/app/input-widget-bug/page1-6846fa40d41eee37793c64e6
Environment
Production
Severity
High (Blocker to building or releasing)
Issue video log
No response
Version
Cloud - "v1.76.0-SNAPSHOT"