Skip to content

<VariantManagement/>: On manage View dialogue, on deleting of the views focus should move to next view #8079

@Abhi1845

Description

@Abhi1845

Describe the bug

Bug is raised as the behaviour of this component is not consistent with UI5 component, which create an a11y defect in Successfactor https://sapui5.hana.ondemand.com/#/entity/sap.m.VariantManagement/sample/sap.m.sample.VariantManagement

Isolated Example

No response

Reproduction steps

  1. Go to https://ui5.github.io/webcomponents-react/v2/?path=/story/inputs-variantmanagement--default
  2. Click on Arrow down icon then on Manage button
Image
  1. Delete one of the view with focus, then focus should move to next present view, if no next view focus should move to default one.
Image

...

Expected Behaviour

It should follow the same behaviour in UI5 https://sapui5.hana.ondemand.com/#/entity/sap.m.VariantManagement/sample/sap.m.sample.VariantManagement, On deleting one of the views from the list focus should move to the next one, in case of no next view in the list focus should move the default view

Screenshots or Videos

Expected :-

20260108-1053-06.2766658.mp4

UI5 Web Components for React Version

"@ui5/webcomponents-react": "^2.16.0",

UI5 Web Components Version

"@ui5/webcomponents": "^2.16.1",

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

Organization

No response

Declaration

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions