Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ui5-multi-combobx]: user behaviour unexpected when press enter in dropdown #10490

Closed
1 task done
InfiniteXyy opened this issue Jan 8, 2025 · 2 comments
Closed
1 task done
Assignees
Labels
bug This issue is a bug in the code Medium Prio TOPIC P

Comments

@InfiniteXyy
Copy link

InfiniteXyy commented Jan 8, 2025

Bug Description

  1. Open the dropdown menu
  2. Use the mouse to select an option
  3. Press enter to confirm

Current behaviour: the select option is toggled to unselected, and the dropdown is closed
Expected behaviour: the select option should be toggled without closing the dropdown

Affected Component

No response

Expected Behaviour

Like antd's multiselect, the enter should not close the dropdown, but only toggles the option
https://ant.design/components/select

Isolated Example

No response

Steps to Reproduce

No response

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.6.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@InfiniteXyy InfiniteXyy added the bug This issue is a bug in the code label Jan 8, 2025
@unazko
Copy link
Contributor

unazko commented Jan 9, 2025

Hello @SAP/ui5-webcomponents-topic-p ,

The expectation is for the ui5-select to not close the listbox once a selection in the list is made via SPACE or ENTER.
The same behavior is as so with the openui5 select control: https://ui5.sap.com/#/entity/sap.m.Select
and it is specified that ENTER or "SPACE" keyboard keys would perform a selection and then close the listbox popover.

The change event is also preventable, but the default action is to select an item so the listbox popover is still closed.
Is there a way to prevent the closing of the listbox popover?

Best regards,
Boyan

@PetyaMarkovaBogdanova PetyaMarkovaBogdanova self-assigned this Jan 17, 2025
@PetyaMarkovaBogdanova PetyaMarkovaBogdanova moved this from Issues to In Progress in Maintenance - Topic P Jan 17, 2025
@PetyaMarkovaBogdanova
Copy link
Contributor

Hi @InfiniteXyy ,
closing the Select Popover, after making a selection through keypress of "ENTER" or "SPACE" key is the desired behaviour of ui5-select web component and it is as defined by our Accessibility specification. There are no planned enhancements on it in our agenda.

Best regards,
Petya Markova.
UI5 Web Components Developer

@github-project-automation github-project-automation bot moved this from In Progress to Completed in Maintenance - Topic P Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code Medium Prio TOPIC P
Projects
Status: Completed
Development

No branches or pull requests

3 participants