Skip to content

Putting a modal dialog in TreeView causes a crash. #4015

@keithamus

Description

@keithamus

Description

When adding a <dialog> element within the contents of a TreeView, and showing the dialog as modal, it will trap the focus to the contents of the dialog, however moving the focus causes TreeView to check where focus is, and assumes the next items to be within the TreeView. This is not the case for Dialogs.

Steps to reproduce

  1. Use a <TreeView>.
  2. Add a <dialog> in the contents of the TreeView and call .showModal()
  3. See an error Element is not a treeitem.

Version

v36.3.1

Browser

Chrome, Safari, Firefox, Edge, iOS Safari

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent: TreeViewIssues related to the TreeView componentreact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions