Skip to content

submenu dropdown is moving on scrolling the main dropdown #1775

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

Open
2 tasks done
iturhs123 opened this issue Mar 17, 2025 · 2 comments
Open
2 tasks done

submenu dropdown is moving on scrolling the main dropdown #1775

iturhs123 opened this issue Mar 17, 2025 · 2 comments
Assignees
Labels
triage We discuss this topic in our internal weekly

Comments

@iturhs123
Copy link

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

When the submenu dropdown is open and we scroll the parent dropdown, the submenu moves along with it.

PFA recording.

Screen.Recording.2025-03-14.at.3.01.32.PM.mov

What type of frontend framework are you seeing the problem on?

React

Which version of iX do you use?

2.7.0

Code to produce this issue.

import { IxButton, IxDropdown, IxDropdownItem } from '@siemens/ix-react';
import React from 'react';

export default () => {
  return (
    <>
      <IxButton id="iconTriggerId">Open</IxButton>
      <IxDropdown trigger="iconTriggerId">
        <IxDropdownItem icon="star" label="Model 1"></IxDropdownItem>
        <IxDropdownItem icon="document" label="Model 2"></IxDropdownItem>
        <IxDropdownItem icon="bulb" label="Model 3"></IxDropdownItem>
        <IxDropdownItem icon="star" label="Model 4"></IxDropdownItem>
        <IxDropdownItem icon="document" label="Model 5"></IxDropdownItem>
        <IxDropdownItem icon="bulb" label="Model 6"></IxDropdownItem>
        <IxDropdownItem icon="star" label="Model 7"></IxDropdownItem>
        <IxDropdownItem icon="document" label="Model 8"></IxDropdownItem>
        <IxDropdownItem icon="bulb" label="Model 9"></IxDropdownItem>
        <IxDropdownItem icon="star" label="Model 10"></IxDropdownItem>
        <IxDropdownItem icon="document" label="Model 11"></IxDropdownItem>
        <IxDropdownItem icon="bulb" label="Model 12"></IxDropdownItem>
        <IxDropdownItem icon="star" label="Model 13"></IxDropdownItem>
        <IxDropdownItem icon="document" label="Model 14"></IxDropdownItem>
        <IxDropdownItem id="submenuTrigger" label="More Model"></IxDropdownItem>
        <IxDropdownItem icon="bulb" label="Model 15"></IxDropdownItem>
      </IxDropdown>
      <IxDropdown trigger="submenuTrigger" placement="right-start">
        <IxDropdownItem icon="star" label="Item 1"></IxDropdownItem>
        <IxDropdownItem icon="document" label="Item 2"></IxDropdownItem>
      </IxDropdown>
    </>
  );
};
@iturhs123 iturhs123 added the triage We discuss this topic in our internal weekly label Mar 17, 2025
@danielleroux
Copy link
Collaborator

@iturhs123 This is an intended behaviour of the component, if the sub-menu is open the dropdown tries to keep the dropdown always visible to the user

@flxlst09
Copy link
Collaborator

@iturhs123 In addition to @danielleroux: We added this topic to discuss in our internal UX sync and will come back to you.

@nuke-ellington nuke-ellington self-assigned this Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage We discuss this topic in our internal weekly
Projects
None yet
Development

No branches or pull requests

4 participants