Skip to content

Pressing the space button when a tree node is focused shouldn't cause the page to scroll #4663

Closed
@victorg1991

Description

When having a TreeView with some scroll, focusing a node and pressing the space key is causing the node to scroll. IINM we should only select the node but not scrolling the page.

Is there an example you can provide via codesandbox.com?

https://codesandbox.io/s/flamboyant-lewin-zth87?file=/src/index.js

What are the steps to reproduce?

  • Focus one node.
  • Press space.

What is the expected result?

  • The node is activated but the page doesn't scroll

Metadata

Assignees

No one assigned

    Labels

    comp: clay-componentsIssues related to Clay components. (e.g ClayCard, ClayLabel...)type: bugIssues reporting that Component is not doing what should be done

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions