-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
the value of textbox won't change from script #6580
Comments
Hi @peymoon as a starting point, can you please upgrade your code to Gradio 4.x to see if this bug is present on the latest version of Gradio? |
Hii@abidlabs yes, updates the Gradio to 4 and the issue still persists. |
I found out what the issue was. The DOM for the textbox object is not the actual text area into which the input goes, it's the wrapper. So the actual text area inside it should be targeted using querySelector. Setting innerText is wrong because you will just overwrite the contents of the container. Here is the fix.
|
@peymoon It works for me. Really appreciate your support. |
Describe the bug
I am trying to get the position of the mouse cursor and print it on the python side. The code shows the coordinates on the GUI but the value is always empty ('') on the python side. Here is my code:
is there anything else that needs to be done to update the value from javascript on the python side?
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: