Closed GaiZhenbiao closed 7 months ago
This should work with the select
event @GaiZhenbiao - but I think we can fix the issue with the input
event.
Hi @GaiZhenbiao! Thanks for raising this. I'm not sure if I'm able to reproduce this. Here's a recording on my end:
Interesting I was able to repro
Hi @GaiZhenbiao! Thanks for raising this. I'm not sure if I'm able to reproduce this. Here's a recording on my end:
I'm using Gradio 4.22.0. This issue wasn't there a few versions ago.
Describe the bug
I'm encountering an issue where a Gradio app's Radio button component stops responding to user input after its choices are updated dynamically. Here's a breakdown of the problem:
Steps to reproduce
Create a Gradio app with a Radio button component and some initial choices. Include a function that displays a notification based on the selected radio option. Write code to dynamically alter the choices in the Radio button component. Try selecting a radio option after the choices have been updated.
Expected behavior
The notification function should execute, displaying the newly selected value.
Actual behavior
No notification appears, and the Radio button appears unresponsive.
Have you searched existing issues? 🔎
Reproduction
Screenshot
The reproduction code will pop a notification containing the user-selected value.
But if you update the choices of the radio group, it breaks; nothing happens after the user's action, nothing is executed.
There were no warnings or errors in either the Python console or the browser's JavaScript console.
Logs
System Info
Severity
Blocking usage of gradio