Skip to content

Commit 58bc944

Browse files
authored
Merge branch 'master' into fix-collab-current-user
2 parents d392ce4 + bd0dd5f commit 58bc944

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

i18n/nb-NO.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ boxui.itemDetails.enterpriseOwner = Enterprise-eier
12111211
# Warning message in the sidebar that this file will be automatically deleted on a certain date, {expiration} is the date
12121212
boxui.itemDetails.fileExpiration = Denne filen slettes {expiration}.
12131213
# Label for files count under item properties in the sidebar
1214-
boxui.itemDetails.filesCountLabel = {filesCount, plural, one {# File} other {# Files}}
1214+
boxui.itemDetails.filesCountLabel = {filesCount,plural,one{# Fil} other{# Filer}}
12151215
# Warning message in the sidebar that this folder will be automatically deleted on a certain date, {expiration} is the date
12161216
boxui.itemDetails.folderExpiration = Denne mappen slettes {expiration}.
12171217
# Label for modified date under item properties in the sidebar

src/elements/common/item/ItemName.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ const ItemName = ({ item, onClick, onFocus, canPreview, isTouch }: ItemNameProps
2020
const onItemClick = (): void => onClick(item);
2121

2222
return type === TYPE_FOLDER || (!isTouch && (type === TYPE_WEBLINK || canPreview)) ? (
23-
<TextButton className="be-item-label" inheritFont onClick={onItemClick} onFocus={onItemFocus}>
23+
<TextButton
24+
className="be-item-label"
25+
inheritFont
26+
onClick={event => {
27+
event.stopPropagation();
28+
onItemClick();
29+
}}
30+
onFocus={onItemFocus}
31+
>
2432
{name}
2533
</TextButton>
2634
) : (

0 commit comments

Comments
 (0)