Skip to content

Add a hasLinks method to Dropdown#367

Open
TheSyscall wants to merge 1 commit intomainfrom
dropdown-has-links
Open

Add a hasLinks method to Dropdown#367
TheSyscall wants to merge 1 commit intomainfrom
dropdown-has-links

Conversation

@TheSyscall
Copy link
Copy Markdown

Provides a new method hasLinks to check if the Dropdown element has at least one link.

isEmpty does have another meaning, namely that the element doesn't have any content at all, which is always false for this element, so I didn't want to use that method.

This can be useful to decide if one should include the dropdown at all, since a dropdown without any links doesn't serve a purpose in most situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant