Skip to content

Commit 0eb3c42

Browse files
Fix for 1056 - org assets breadcrumb click event
1 parent bc41303 commit 0eb3c42

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.JSON

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"fixes": [
2222
"`FilePicker`: `defaultFolderAbsolutePath` does not work Out of context [#1023](https://github.com/pnp/sp-dev-fx-controls-react/issues/1023)",
2323
"`FilePicker`: Fixed showing the selection circle on recent tabs [#1048](https://github.com/pnp/sp-dev-fx-controls-react/issues/1048)",
24+
"`FilePicker`: Your organisation tab breadcrumb not working [#1056](https://github.com/pnp/sp-dev-fx-controls-react/issues/1056)",
2425
"`ModernTaxonomyPicker`: correctly display with RTL mode [#1041](https://github.com/pnp/sp-dev-fx-controls-react/pull/1041)"
2526
]
2627
},

src/controls/filePicker/SiteFilePickerTab/SiteFilePickerTab.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export default class SiteFilePickerTab extends React.Component<ISiteFilePickerTa
2828
isCurrentItem: false,
2929
text: props.context.pageContext.web.title,
3030
key: props.context.pageContext.web.id.toString(),
31-
onClick: (ev, itm) => { this.onBreadcrumpItemClick(itm); }
3231
};
32+
// add click event after defining breadcrumb so that it also applies to breadcrumb items passed to the component as properties
33+
breadcrumbSiteNode.onClick = (ev, itm) => { this.onBreadcrumpItemClick(itm); }
3334

3435
let breadcrumbItems: FilePickerBreadcrumbItem[] = [breadcrumbSiteNode];
3536

0 commit comments

Comments
 (0)