Skip to content

Dropdown does not close when click outside#1251

Merged
gvreddy04 merged 2 commits intomainfrom
bugfix/1250-dropdown-does-not-close-when-click-outside
Feb 18, 2026
Merged

Dropdown does not close when click outside#1251
gvreddy04 merged 2 commits intomainfrom
bugfix/1250-dropdown-does-not-close-when-click-outside

Conversation

@gvreddy04
Copy link
Contributor

No description provided.

Update dropdown JS logic to operate on the child element with data-bs-toggle="dropdown" when present, ensuring Bootstrap methods and event listeners are attached to the correct toggle button. Falls back to the parent if no toggle is found, improving alignment with Bootstrap's expected usage.
- Group dropdowns in demos using btn-group with spacing for better layout and clarity.
- Split Dropdown_Demo_14_Methods into separate sections for Show/Hide and Toggle, each with its own dropdown instance.
- Apply ButtonGroup class in Dropdown.razor.cs only when Split is true, altering default grouping behavior.
@gvreddy04 gvreddy04 added this to the 4.0.0 milestone Feb 18, 2026
@gvreddy04 gvreddy04 self-assigned this Feb 18, 2026
@gvreddy04 gvreddy04 changed the title Bugfix/1250 dropdown does not close when click outside Dropdown does not close when click outside Feb 18, 2026
@gvreddy04 gvreddy04 merged commit b644c4b into main Feb 18, 2026
1 of 3 checks passed
@gvreddy04 gvreddy04 deleted the bugfix/1250-dropdown-does-not-close-when-click-outside branch February 18, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropdown menu opened programmatically doesn't close when clicking away

1 participant

Comments