Skip to content

Commit

Permalink
Quick fix: Make component interactive when it is in focus (#6530)
Browse files Browse the repository at this point in the history
* fi

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
  • Loading branch information
3 people committed Nov 22, 2023
1 parent 6d3fecf commit 13ef0f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/five-experts-repeat.md
@@ -0,0 +1,6 @@
---
"@gradio/app": patch
"gradio": patch
---

fix:Quick fix: Make component interactive when it is in focus
3 changes: 2 additions & 1 deletion js/app/src/Blocks.svelte
Expand Up @@ -491,7 +491,8 @@
outputs.forEach((id) => {
if (
instance_map[id].props.interactive &&
status.stage === "pending"
status.stage === "pending" &&
dep.targets[0][1] !== "focus"
) {
pending_outputs.push(id);
instance_map[id].props.interactive = false;
Expand Down

0 comments on commit 13ef0f0

Please sign in to comment.