mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
Merge pull request #10772 from gitstart/fix/action-icon-row-click
fix: Clicking the action icon on storage UI, should not trigger the row click event
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -307,6 +307,10 @@ const FileExplorerRow = ({
|
||||
className={`flex items-center justify-end ${
|
||||
view === STORAGE_VIEWS.LIST ? 'flex-grow' : 'w-[10%]'
|
||||
}`}
|
||||
onClick={(event) =>
|
||||
// Stops click event from this div, to resolve an issue with menu item's click event triggering unexpected row select
|
||||
event.stopPropagation()
|
||||
}
|
||||
>
|
||||
{item.status === STORAGE_ROW_STATUS.LOADING ? (
|
||||
<IconLoader
|
||||
|
||||
@@ -1183,7 +1183,7 @@ class StorageExplorerStore {
|
||||
const files = await this.getAllItemsAlongFolder(folder)
|
||||
await this.deleteFiles(files, isDeleteFolder)
|
||||
|
||||
const isFolderOpen = this.openedFolders[this.openedFolders.length - 1].name === folder.name
|
||||
const isFolderOpen = this.openedFolders[this.openedFolders.length - 1]?.name === folder.name
|
||||
if (isFolderOpen) {
|
||||
this.popColumnAtIndex(folder.columnIndex)
|
||||
this.popOpenedFoldersAtIndex(folder.columnIndex - 1)
|
||||
|
||||
Reference in new issue
Block a user