-
Notifications
You must be signed in to change notification settings - Fork 919
Closed
Closed
Copy link
Labels
Possible BugA bug that was reported but not confirmed yet.A bug that was reported but not confirmed yet.
Description
Issue
The Show operation button doesn't respect lineButtonsAsDropdown settings and always appears outside the dropdown, even when configured to force ALL buttons into dropdown.
Code to Reproduce
class LeadCrudController extends CrudController
{
use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
use \Backpack\CRUD\app\Http\Controllers\Operations\ShowOperation;
use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation;
protected function setupListOperation()
{
// These settings should force ALL buttons into dropdown
$this->crud->setOperationSetting('lineButtonsAsDropdown', true);
$this->crud->setOperationSetting('lineButtonsAsDropdownMinimum', 0);
$this->crud->setOperationSetting('lineButtonsAsDropdownShowBefore', 0);
// Basic columns
CRUD::addColumn(['name' => 'id', 'label' => 'ID', 'type' => 'text']);
}
}Expected Behavior
According to docs, lineButtonsAsDropdownMinimum: 0 means "dropdown is created no matter how many buttons are present". ALL buttons should be in dropdown.
[▼ Actions]
└─ Show
└─ Update
└─ Delete
Actual Behavior
Show button appears inline while other buttons are in dropdown:
[Show] [▼ Actions]
└─ Update
└─ Delete
HTML Output Evidence
<td>
<!-- Show button rendered OUTSIDE dropdown -->
<a href=".../show" bp-button="show" class="btn btn-sm btn-link">
<i class="la la-eye"></i> <span>Preview</span>
</a>
<!-- Dropdown with other buttons -->
<a class="dropdown-toggle">Actions</a>
<div class="dropdown-menu">
<a href=".../edit" bp-button="update" class="dropdown-item">Edit</a>
<a href="..." bp-button="delete" class="dropdown-item">Delete</a>
</div>
</td>Metadata
Metadata
Assignees
Labels
Possible BugA bug that was reported but not confirmed yet.A bug that was reported but not confirmed yet.
Type
Projects
Status
Done
Status
Done