layer5io / layer5io/sistent

[Bug] ActionButton: Dropdown menu misaligned when clicking dropdown arrow

Open
#1,809 1 comment 0 reactions 1 assignee View on GitHub

@MAYANKSHARMA01010 is already working on this.

Since Aug 24, 2026.

kind/bug
Dominant language
TypeScript
Stars
137
Forks
239
Avg merge
4d 14h
Merged PRs (30d)
5

Description

Current Behavior

In the ActionButton component, clicking the dropdown arrow opens the menu misaligned and shifted to the right.

This happens because the Popper anchors dynamically to event.currentTarget (the small arrow button) instead of the entire ButtonGroup.

Expected Behavior

The dropdown menu should always open at a consistent, aligned position under the ButtonGroup, whether the user clicks the primary button or the dropdown arrow button.

Root Cause
  1. anchorEl was set to event.currentTarget inside handleToggle, which points only to the arrow button on the right edge.
  2. ButtonGroup was missing a ref={anchorRef}.
Related Issue
Environment
  • Component: @sistent/sistent (src/custom/ActionButton/ActionButton.tsx)
  • Consumers: Kanvas (MeshMap), Meshery UI

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.