Skip to content

Commit d49f357

Browse files
authored
Express version of panel_conditional() should treat condition argument as a positional arg (#982)
1 parent 53c46fd commit d49f357

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

shiny/express/ui/_cm_components.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,6 @@ def panel_well(**kwargs: TagAttrValue) -> RecallContextManager[Tag]:
12171217

12181218

12191219
def panel_conditional(
1220-
*,
12211220
condition: str,
12221221
**kwargs: TagAttrValue,
12231222
) -> RecallContextManager[Tag]:
@@ -1255,10 +1254,8 @@ def panel_conditional(
12551254
"""
12561255
return RecallContextManager(
12571256
ui.panel_conditional,
1258-
kwargs=dict(
1259-
condition=condition,
1260-
**kwargs,
1261-
),
1257+
args=(condition,),
1258+
kwargs=dict(**kwargs),
12621259
)
12631260

12641261

0 commit comments

Comments
 (0)