Skip to content

can't bind to open attribute on <details> or <dialog> elements #64194

@andrewschmidgit

Description

@andrewschmidgit

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

cannot bind to open attribute

<details @bind-open=IsOpen>
  <summary>Summary</summary>

  expanded text
</details>

@code {
  public bool IsOpen { get; set; }
}

or

<dialog @bind-open=IsOpen>
  content
</dialog>

@code {
  public bool IsOpen { get; set; }
}

Expected Behavior

for this to work, and for any html attribute to be bindable, rather than a list of:

  • value
  • checked
  • others

I can't seem to find a list of the supported bindable attributes or events in the documentation either

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0.304

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions