Skip to content

Commit

Permalink
fix(layout_columns): If the breakpoint name is an enum, need to colle…
Browse files Browse the repository at this point in the history
…ct the value (#902)
  • Loading branch information
gadenbuie committed Dec 12, 2023
1 parent 0e2d046 commit 5b11186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shiny/ui/_layout_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def col_widths_attrs(col_widths: BreakpointsOptional[int] | None) -> TagAttrs:
return ret

for break_name, value in col_widths.items():
if isinstance(break_name, Enum):
break_name = break_name.value
break_name = f"col-widths-{break_name}"
if value is None:
ret[break_name] = ""
Expand Down

0 comments on commit 5b11186

Please sign in to comment.