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

Fixes #15367 - SpeedDial non-linear menu items are misaligned #15368

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Fixes #15367 - SpeedDial non-linear menu items are misaligned #15368

merged 1 commit into from
Apr 26, 2024

Conversation

Dive576
Copy link
Contributor

@Dive576 Dive576 commented Apr 26, 2024

Fixes #15367

Background

In a previous PR (#13726), a change was made so that menu item actions would not be added to the DOM unless the speed dial menu was visible. This was done to prevent those menu items from interfering with clicks on elements below the items while the menu was closed.
However, the size of the menu item actions is used to position the items and the calculation is performed while the actions aren't in the DOM resulting in the items being misaligned. Additionally, the removal of the menu item actions causes the closing animation of the Speed Dial to not be displayed.

Changes

  1. Removes the changes from Fixed #13725 - Speed Dial Items only visible when dial is visible #13726 and uses CSS to achieve the desired effect.
  2. Fixes a bug with accessing the value of the focusedOptionIndex signal which was causing an exception when pressing the enter key on a focused menu item.

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Apr 26, 2024 0:33am

@Dive576 Dive576 changed the title Fixed #15367 - Non-linear menu items are misaligned Fixed #15367 - SpeedDial non-linear menu items are misaligned Apr 26, 2024
@Dive576 Dive576 changed the title Fixed #15367 - SpeedDial non-linear menu items are misaligned Fixes #15367 - SpeedDial non-linear menu items are misaligned Apr 26, 2024
@cetincakiroglu cetincakiroglu merged commit 762b43b into primefaces:master Apr 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpeedDial: Non-linear menu items are misaligned
2 participants