Skip to content

Commit

Permalink
Prevent broken scroll_to_output in Spaces (#4822)
Browse files Browse the repository at this point in the history
* changes

* c

* change

* changes
  • Loading branch information
aliabid94 committed Jul 7, 2023
1 parent 4b7cb2a commit 5dc445b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -38,6 +38,7 @@
- Don't crash when uploaded image has broken EXIF data, by [@akx](https://github.com/akx) in [PR 4764](https://github.com/gradio-app/gradio/pull/4764)
- Place toast messages at the top of the screen by [@pngwn](https://github.com/pngwn) in [PR 4796](https://github.com/gradio-app/gradio/pull/4796)
- Fix regressed styling of Login page when auth is enabled by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 4797](https://github.com/gradio-app/gradio/pull/4797)
- Prevent broken scrolling to output on Spaces by [@aliabid94](https://github.com/aliabid94) in [PR 4822](https://github.com/gradio-app/gradio/pull/4822)

## Other Changes:

Expand Down
2 changes: 1 addition & 1 deletion gradio/blocks.py
Expand Up @@ -283,7 +283,7 @@ def set_event_trigger(
"js": js,
"queue": False if fn is None else queue,
"api_name": api_name,
"scroll_to_output": scroll_to_output,
"scroll_to_output": False if utils.get_space() else scroll_to_output,
"show_progress": show_progress,
"every": every,
"batch": batch,
Expand Down

1 comment on commit 5dc445b

@vercel
Copy link

@vercel vercel bot commented on 5dc445b Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.