Problem/Motivation

When having a dropdown component, the first link is render perfectly and near it, the "toggle dropdown" button is rendered with the rest of the links.
However, if there are no links to be rendered, the button is still there displaying and empty box when clicking on the arrow, as the ul is hidden

Steps to reproduce

For example, in a view with just one link under the operations column

Proposed resolution

Change the behaviour of the dropdown so it renders the "toggle button" and the rest of the items only if there are items to be rendered

Issue fork radix-3576155

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gorkagr created an issue. See original summary.

gorkagr’s picture

Status: Active » Needs review
gorkagr’s picture

Title: Drowpdown displays toggle button with empty links » Drowpdown should not display toggle button with empty links (it does)
anybody’s picture

Title: Drowpdown should not display toggle button with empty links (it does) » Dropdown should not display toggle button with empty links (it does)
Status: Needs review » Reviewed & tested by the community

Thank you!

doxigo made their first commit to this issue’s fork.

doxigo’s picture

Status: Reviewed & tested by the community » Fixed

Thanks a lot guys for the clean MR and sorry for a late response, merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.