Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Made sure all `@render.data_frame` cells that have been edited are now restored back to ready state to handle the off chance that the returned patches are at different locations the the original edit patches. (#1529)

* `remove_all_fill(tag)` no longer modifies the original `tag` input and instead returns a modified copy of `tag`. (#1538)


### Other changes

Expand Down
11 changes: 6 additions & 5 deletions shiny/ui/fill/_fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def remove_all_fill(
Returns
-------
:
The original :class:`~htmltools.Tag` object with filling layout attributes
removed.
A copy of the original :class:`~htmltools.Tag` object with filling layout
attributes removed.


See Also
Expand All @@ -137,9 +137,10 @@ def remove_all_fill(
* :func:`~shiny.ui.fill.as_fillable_container`
"""

tag.remove_class(FILL_CONTAINER_CLASS)
tag.remove_class(FILL_ITEM_CLASS)
return tag
res = copy(tag)
res.remove_class(FILL_CONTAINER_CLASS)
res.remove_class(FILL_ITEM_CLASS)
return res


# Method currently not exposed, but implemented within bslib
Expand Down