mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 07:37:59 +00:00
fix(ui): add modal={false} to file browser menus to prevent focus-conflict freeze
This commit is contained in:
@@ -533,7 +533,7 @@ export function FileBrowser({
|
||||
|
||||
const renderContent = () => {
|
||||
return (
|
||||
<ContextMenu>
|
||||
<ContextMenu modal={false}>
|
||||
<ContextMenuTrigger asChild disabled={isShareView || isPublic}>
|
||||
<div
|
||||
ref={scrollContainerRef}
|
||||
|
||||
@@ -266,9 +266,8 @@ export function FileCard({
|
||||
{displayItem.creator?.name}
|
||||
</p>
|
||||
</div>
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
<DropdownMenu modal={false}>
|
||||
<DropdownMenuTrigger asChild> <Button
|
||||
size="icon-sm"
|
||||
variant="ghost"
|
||||
className="cursor-pointer"
|
||||
|
||||
@@ -276,7 +276,7 @@ export function FolderCard({
|
||||
<span className="text-xs tracking-wide opacity-80">
|
||||
{item.fileCount || 0} {(item.fileCount || 0) === 1 ? 'Item' : 'Items'}
|
||||
</span>
|
||||
<DropdownMenu>
|
||||
<DropdownMenu modal={false}>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<button
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
|
||||
Reference in New Issue
Block a user