diff --git a/common/changes/@itwin/imodel-browser-react/omar-fix-imodel-action-opening_2025-07-10-23-24.json b/common/changes/@itwin/imodel-browser-react/omar-fix-imodel-action-opening_2025-07-10-23-24.json new file mode 100644 index 00000000..ea850d48 --- /dev/null +++ b/common/changes/@itwin/imodel-browser-react/omar-fix-imodel-action-opening_2025-07-10-23-24.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@itwin/imodel-browser-react", + "comment": "Fix iModel opening when opening action dropdown", + "type": "patch" + } + ], + "packageName": "@itwin/imodel-browser-react" +} \ No newline at end of file diff --git a/packages/modules/imodel-browser/src/containers/iModelTiles/IModelTile.tsx b/packages/modules/imodel-browser/src/containers/iModelTiles/IModelTile.tsx index 2eaa8b90..7a404a6f 100644 --- a/packages/modules/imodel-browser/src/containers/iModelTiles/IModelTile.tsx +++ b/packages/modules/imodel-browser/src/containers/iModelTiles/IModelTile.tsx @@ -118,20 +118,18 @@ export const IModelTile = ({ )} - onClick?.(e) ?? onThumbnailClick?.(iModel)} - aria-disabled={isDisabled} - data-testid={`iModel-tile-${iModel.id}`} - > - + + onClick?.(e) ?? onThumbnailClick?.(iModel)} + aria-disabled={isDisabled} + data-testid={`iModel-tile-${iModel.id}`} + > {iModel?.description ?? ""} - {(moreOptions || moreOptionsBuilt) && ( - - {moreOptions ?? moreOptionsBuilt} - - )} - - + + {(moreOptions || moreOptionsBuilt) && ( + {moreOptions ?? moreOptionsBuilt} + )} + {buttons && {buttons}} );