mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #21713] [MERGED] fix: explicitly disable dragging and text selection inside dropdown menus #41861
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21713
Author: @silentoplayz
Created: 2/21/2026
Status: ✅ Merged
Merged: 2/22/2026
Merged by: @tjbck
Base:
dev← Head:fix/chat-menu-drag-glitch📝 Commits (2)
020d58bfix(ui): remove select-none from move and pdf menu items to allow highlighting577ca26fix(ui): explicitly disable dragging and text selection inside dropdown menus globally📊 Changes
2 files changed (+31 additions, -31 deletions)
View changed files
📝
src/lib/components/layout/Navbar/Menu.svelte(+16 -16)📝
src/lib/components/layout/Sidebar/ChatMenu.svelte(+15 -15)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
ChatMenu.svelteorNavbar/Menu.svelte) could be highlighted with native text selection tools inside the browser and mistakenly dragged out of context as ghost anomalies.Added
DropdownMenu.ItemandDropdownMenu.SubTriggermapping component insideChatMenu.svelteandNavbar/Menu.sveltewith strictly encapsulateddraggable="false"rules.select-noneexplicitly to all instances of<DropdownMenu.Content>and<DropdownMenu.SubContent>block mappings internally bridging those identical route modules.Fixed
Screenshots
Before
After
Additional Information
select-nonedirectly enabled visual parity acrossMoveandPDF documentoptions to match other links initially when highlighting sweeping gestures were utilized, it simultaneously exposed an identical drag-glitch loophole inherently allowing any user highlighting text in those specific menus native freedom to drag the selected options as massive transparent ghost images matching the same constraints observed in the Administration navigation tabs earlier.By globally targeting the
DropdownMenu.Contentwrapper layout components bounding those selections locally usingclass="select-none"coupled tightly alongsidedraggable="false"constraints dynamically mirroring the exact patches pushed upstream for top-level headers inherently shields all dropdown list-element components flawlessly indefinitely.Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.