`accordion(open=TRUE)` is applied to nested accordions
Open
Nobody has claimed this yet.
- Dominant language
- SCSS
- Stars
- 569
- Forks
- 72
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 5
Description
In the following example, Accordion 2 should be open but the nested accordion within Accordion 2 should have all of its panels closed.
library(shiny)
library(bslib)
ui <- page_fluid(
accordion(
open = "Accordion 2",
accordion_panel("Accordion 1"),
accordion_panel(
"Accordion 2",
accordion(
open = FALSE,
accordion_panel("Nested accordion 1"),
accordion_panel("Nested accordion 2")
)
)
)
)
server <- function(input, output, session) {}
shinyApp(ui, server)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the supplied Shiny app and start at the accordion() and accordion_panel() entry points. Trace how the outer open setting affects nested accordions. Done means Accordion 2 opens while both panels in its nested accordion remain closed when the nested accordion uses open = FALSE.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bootstrap, r
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100