Skip to content

Commit 5b11186

Browse files
authored
fix(layout_columns): If the breakpoint name is an enum, need to collect the value (#902)
1 parent 0e2d046 commit 5b11186

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shiny/ui/_layout_columns.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ def col_widths_attrs(col_widths: BreakpointsOptional[int] | None) -> TagAttrs:
237237
return ret
238238

239239
for break_name, value in col_widths.items():
240+
if isinstance(break_name, Enum):
241+
break_name = break_name.value
240242
break_name = f"col-widths-{break_name}"
241243
if value is None:
242244
ret[break_name] = ""

0 commit comments

Comments
 (0)