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:
Terry Sutton authored and GitHub committed 2022-12-19 16:35:10 -03:30
commit 30032cb049
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)