Skip to content
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

Dropdown input and change events triggered without choice selection #6712

Closed
1 task done
arian81 opened this issue Dec 8, 2023 · 2 comments
Closed
1 task done

Dropdown input and change events triggered without choice selection #6712

arian81 opened this issue Dec 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@arian81
Copy link
Contributor

arian81 commented Dec 8, 2023

Describe the bug

Dropwdown input and change events are triggered when press the dropdown and click outside without actually selecting any value. To recreate, setup a dropdown and attack an input or change event to it and you can see the event triggers if you press to choose an option from drop down and click outside without choosing any of the options.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

drop = gr.Dropdown([1,2])

drop.input(lambda : gr.Dropdown(visibile=False), [], [drop])

Screenshot

No response

Logs

No response

System Info

Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 4.8.0
gradio_client version: 0.7.1

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
altair: 5.2.0
fastapi: 0.104.1
ffmpy: 0.3.1
gradio-client==0.7.1 is not installed.
httpx: 0.25.2
huggingface-hub: 0.19.4
importlib-resources: 6.1.1
jinja2: 3.1.2
markupsafe: 2.1.3
matplotlib: 3.8.2
numpy: 1.26.2
orjson: 3.9.10
packaging: 23.2
pandas: 2.1.3
pillow: 10.1.0
pydantic: 2.5.2
pydub: 0.25.1
python-multipart: 0.0.6
pyyaml: 6.0.1
requests: 2.31.0
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.9.0
typing-extensions: 4.8.0
uvicorn: 0.24.0.post1
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2023.12.1
httpx: 0.25.2
huggingface-hub: 0.19.4
packaging: 23.2
requests: 2.31.0
typing-extensions: 4.8.0
websockets: 11.0.3

Severity

Blocking usage of gradio

@arian81 arian81 added the bug Something isn't working label Dec 8, 2023
@sbarman-mi9
Copy link

Might be associated with -> #6707

@freddyaboulton
Copy link
Collaborator

This is fixed on main and will be out in the next release! Thanks @arian81 @sbarman-mi9 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants