-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while handling range element in react app #2173
Comments
Thanks for reporting with a sample, managed to replicate will take a look |
There is a workaround for this issue. Please use the following steps:
You can change the values of x and y as appropriate to the application. |
Hi, I am planning to work on this issue. I have done some investigation. It is a known issue because of how reactjs overwrites prototype of every element for there is also a suggested 8000 solution for handling this issue here. i tried the fix and it works. i am thinking of adding the approach mentioned in above issue as a function in in base let me know if it sounds ok |
@NivedhaSenthil Hope this approach is ok. This is a react specific issue, but the injected code should work for everything. |
yes this approach looks fine 👍 Hope the tests cover other cases to safely make this change |
Describe the bug
While selecting a range value in a react app, it appears that the event handlers are not being triggered correctly
To Reproduce
Deployed a sample app to demonstrate the behaviour https://cocky-noether-e87ec6.netlify.app/
Sign up button is enabled only if the age threshold is met. Taiko is able to set the age correctly for the range but the button does not get enabled. It works for a manual run.
I think a similar issue affects timefield and checkbox element types as well
Expected behavior
Button should be enabled for the above set of commands.
Screenshots

Manual run:
Taiko run:

Additional context
Maybe related to https://coryrylan.com/blog/trigger-input-updates-with-react-controlled-inputs
The text was updated successfully, but these errors were encountered: