Skip to content

Commit 6ad1345

Browse files
committed
Update app.py
1 parent fe4c0e8 commit 6ad1345

File tree

1 file changed

+2
-7
lines changed
  • shiny/api-examples/bookmark_callbacks

1 file changed

+2
-7
lines changed

shiny/api-examples/bookmark_callbacks/app.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def app_ui(request: Request):
1111
"Directions: "
1212
"\n1. Change the radio buttons below"
1313
"\n2. Refresh your browser."
14-
"\n3. Only the first radio button will be restored."
14+
"\n3. The radio buttons should be restored to their previous state."
1515
"\n4. Check the console messages for bookmarking events."
1616
),
1717
ui.hr(),
@@ -45,12 +45,7 @@ async def _():
4545

4646
@render.code
4747
def letters():
48-
return str(
49-
[
50-
input.letter(),
51-
lowercase_letter(),
52-
]
53-
)
48+
return str([input.letter(), lowercase_letter()])
5449

5550
# When the user interacts with the input, we will bookmark the state.
5651
@reactive.effect

0 commit comments

Comments
 (0)