Skip to content

Option to preserve details disclosure element open attribute #41

@tatut

Description

@tatut

It would be helpful to have an option to preserve the open attribute of a details element.
Many cases where a backend doesn't know (or care) if the element is open, but if it isn't preserved the details will close on re-render.

<details>
  <summary>Open to see my details</summary>
  <ul>
    <li>foo</li>
    <li>bar</li>
    <li>...</li>
  </ul>
</details>

Should this be a new option (like openness in modals/disclosure elements) or be done with the existing callbacks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions