Skip to content

[Bug]: Bulk Action Menu - Dropdown menu width not set correctly in bootstrap 5 #2264

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
ahmadrivaldi-arv opened this issue May 7, 2025 · 7 comments
Labels
Awaiting Next Release Currently merged into development awaiting a release to master bug Something isn't working

Comments

@ahmadrivaldi-arv
Copy link

ahmadrivaldi-arv commented May 7, 2025

What happened?

The class w-100 causes the dropdown item text to overflow. If the class is removed, the text displays normally.

Screen.Recording.2025-05-07.at.15.51.12.webm

How to reproduce the bug

No response

Package Version

3.7.3

PHP Version

8.3.x

Laravel Version

11

Alpine Version

3.14.8

Theme

Bootstrap 5.x

Notes

The dropdown menu should automatically adjust its width to fit the content without causing text overflow, even with w-100 applied.

Error Message

No response

@ahmadrivaldi-arv ahmadrivaldi-arv added the bug Something isn't working label May 7, 2025
@lrljoe
Copy link
Collaborator

lrljoe commented May 8, 2025

What did you replace it with to get it to work smoothly?

@ahmadrivaldi-arv
Copy link
Author

What did you replace it with to get it to work smoothly?

just remove the w-100 class and it works normally

@lrljoe
Copy link
Collaborator

lrljoe commented May 9, 2025

Ok will look to add this change in, or feel free to open a pr against development

@ahmadrivaldi-arv
Copy link
Author

just found the solution with

$this->setBulkActionsMenuAttributes([
    'class' => 'w-auto'
]);

still need pr for this?

@ahmadrivaldi-arv
Copy link
Author

or set default to w-auto instead of w-100

ahmadrivaldi-arv added a commit to ahmadrivaldi-arv/laravel-livewire-tables that referenced this issue May 20, 2025
ahmadrivaldi-arv added a commit to ahmadrivaldi-arv/laravel-livewire-tables that referenced this issue May 20, 2025
@lrljoe
Copy link
Collaborator

lrljoe commented May 25, 2025

I've opened PR #2270 but have yet to test it

This just implements the two changes suggested for bulk actions menu, and column select

@lrljoe
Copy link
Collaborator

lrljoe commented Jun 7, 2025

Note PR is in development branch

@lrljoe lrljoe added the Awaiting Next Release Currently merged into development awaiting a release to master label Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Next Release Currently merged into development awaiting a release to master bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants