ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Tree]: Space is not working

Open pop1989bb opened this issue 1 year ago • 2 comments

Bug Description

In your documentation you write [SPACE] - Selects the currently focused item upon keyup.

This isn't working or I don't get it the right way what the "selects the currently focused item" means. At least the selected event isn't fired.

And if I am using the custom tree element the space isn't reaching for example an input field which is placed into the custom tree element.

Affected Component

Tree

Expected Behaviour

The selection event isn't fired.

Isolated Example

No response

Steps to Reproduce

  1. Select an tree item within the tree
  2. Press enter
  3. The selected event should be fired?

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

1.26.3

Browser

Chrome, Firefox

Operating System

Windows 11

Additional Context

No response

Organization

No response

Declaration

  • [X] I’m not disclosing any internal or sensitive information.

pop1989bb avatar May 08 '24 11:05 pop1989bb

Hello @pop1989bb,

Could you please provide an isolated example if possible by forking this stackblitz?

Kind Regards, Niya

niyap avatar May 09 '24 08:05 niyap

Hi @pop1989bb,

As you can see in the keyboard interaction section (https://sap.github.io/ui5-webcomponents/components/Tree/#keyboard-handling), the Space and the Enter key should select the current focused item when mode property is in use (e.g. mode is set to some kind of selection).

nnaydenow avatar May 09 '24 08:05 nnaydenow

Hi guys,

my bad! I accidentially selected the wrong mode. So my bad. This ticket isn't necessary anymore.

Kind regards

pop1989bb avatar May 15 '24 07:05 pop1989bb