-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Continued from #12854 and #12862 . (Apologies if this isn't the right place to post this issue.)
#12862 PR's
pip install https://gradio-pypi-previews.s3.amazonaws.com/f46c77b7509f1266e09c11beff24a79650e2d4fd/gradio-6.5.1-py3-none-any.whl
was used for testing. The .blur event for colorpicker triggers unexpectedly early when clicking the color picker, causing .submit to fail.
I tested using Chrome, Firefox, and the Samsung browser on Windows,
and the Samsung browser on Android, but all yielded the same result.
The video is attached below.
Have you searched existing issues? π
- I have searched and found no existing issues
Reproduction
import gradio as gr
with gr.Blocks() as demo:
CP = gr.ColorPicker(label='Color Picker')
CP.focus(fn=lambda : gr.Info('CP is focused'))
CP.blur(fn=lambda : gr.Info('CP is blured'))
CP.submit(fn=lambda : gr.Info('CP is submitted'))
demo.launch(server_name='0.0.0.0')
import gradio as gr
with gr.Blocks() as demo:
CP = gr.ColorPicker(label='Color Picker')
CP.focus(fn=lambda : gr.Info('CP is focused'))
CP.blur(fn=lambda : gr.Info('CP is blured'))
CP.submit(fn=lambda : gr.Info('CP is submitted'))
demo.launch(server_name='0.0.0.0')Screenshot
20260217_160717.mp4
Logs
System Info
Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 6.5.1
gradio_client version: 2.0.3
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 24.1.0
anyio: 4.9.0
audioop-lts is not installed.
brotli: 1.1.0
fastapi: 0.115.12
ffmpy: 0.6.0
gradio-client: 2.0.3
groovy: 0.1.2
httpx: 0.28.1
huggingface-hub: 1.2.3
jinja2: 3.1.6
markupsafe: 3.0.2
numpy: 2.2.6
orjson: 3.10.18
packaging: 25.0
pandas: 2.3.0
pillow: 11.2.1
pydantic: 2.11.10
pydub: 0.25.1
python-multipart: 0.0.20
pytz: 2025.2
pyyaml: 6.0.2
safehttpx: 0.1.7
semantic-version: 2.10.0
starlette: 0.46.2
tomlkit: 0.13.3
typer: 0.16.0
typing-extensions: 4.15.0
uvicorn: 0.34.3
mcp is not installed.
pydantic: 2.11.10
authlib is not installed.
itsdangerous is not installed.
gradio_client dependencies in your environment:
fsspec: 2025.5.1
httpx: 0.28.1
huggingface-hub: 1.2.3
packaging: 25.0
typing-extensions: 4.15.0Severity
I can work around it
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working