Skip to content

[tree view] Add prop to disable type-ahead focusing #14985

Closed as not planned
Closed as not planned

Description

@ohmsl

Expected Behaviour

<SimpleTreeView disableTypeAheadFocusing>
     <TreeItem
      itemId={id}
      label={label}
     />
</SimpleTreeView>

Temporary Workaround

This simple workaround works, but it also disables more useful keyboard navigation like the arrow keys.

<SimpleTreeView onKeyDownCapture={(e) => e.stopPropagation()}>
     <TreeItem
      itemId={id}
      label={label}
     />
</SimpleTreeView>

Search keywords: type ahead, focusing, single character

Activity

  1. added
    type: new featureExpand the scope of the product to solve a new problem.
    on Oct 15, 2024
  2. flaviendelangle commented on Oct 16, 2024

    @flaviendelangle
    Member

    Hi
    Thanks for your issue.

    You can use event.defaultMuiPrevented = true to only prevent the MUI logic without totally stopping the propagation.
    The following example should keep all the other keyboard interactions.

    I'm keeping this issue with "Waiting for upvote" for a built-in support.
    And I will fire a pull request to make MuiCancellableEventHandler which I uses in this example public 👍

  3. added
    waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.
    scope: tree viewChanges related to the tree view. This includes TreeView, TreeItem.
    and removed on Oct 16, 2024
  4. ohmsl commented on Oct 16, 2024

    @ohmsl
    Author

    Thank you Flavien 🙏🏼

  5. changed the title [-][TreeView] Add prop to disable type-ahead focusing[/-] [+][tree view] Add prop to disable type-ahead focusing[/+] on Mar 1, 2025
  6. michelengelen commented on Oct 30, 2026

    @michelengelen
    Member

    This did not gain a lot of interest in the last 2 years, so I will close this as not planned. There is a workaround available though so you can use that for your use case.

  7. removed
    waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: tree viewChanges related to the tree view. This includes TreeView, TreeItem.type: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions