Skip to content

Commit

Permalink
ImageEditor: Trigger input event even if change event not defined (#1…
Browse files Browse the repository at this point in the history
…0308)

* ImageEditor: Trigger input event even if change event not defined

* add changeset

* empty

* format

---------

Co-authored-by: gradio-pr-bot <[email protected]>
  • Loading branch information
freddyaboulton and gradio-pr-bot authored Jan 10, 2025
1 parent e0cb47f commit 3543418
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/long-snakes-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/imageeditor": patch
"gradio": patch
---

fix:ImageEditor: Trigger input event even if change event not defined
3 changes: 2 additions & 1 deletion js/imageeditor/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@
{brush}
{eraser}
changeable={attached_events.includes("apply")}
realtime={attached_events.includes("change")}
realtime={attached_events.includes("change") ||
attached_events.includes("input")}
i18n={gradio.i18n}
{transforms}
accept_blobs={server.accept_blobs}
Expand Down

0 comments on commit 3543418

Please sign in to comment.