|
|
@@ -122,13 +122,12 @@ const PageListItemLSubstance: ForwardRefRenderFunction<ISelectable, Props> = (pr
|
|
|
if (onClickItem != null) {
|
|
|
onClickItem(pageData._id);
|
|
|
}
|
|
|
- }, [isDeviceSmallerThanLg, onClickItem, pageData._id]);
|
|
|
|
|
|
- const pagePathClickHandler = useCallback(() => {
|
|
|
if (isOpendDescendantsPageListModal) {
|
|
|
closeDescendantsPageListModal();
|
|
|
}
|
|
|
- }, [closeDescendantsPageListModal, isOpendDescendantsPageListModal]);
|
|
|
+
|
|
|
+ }, [closeDescendantsPageListModal, isDeviceSmallerThanLg, isOpendDescendantsPageListModal, onClickItem, pageData._id]);
|
|
|
|
|
|
const bookmarkMenuItemClickHandler = async(_pageId: string, _newValue: boolean): Promise<void> => {
|
|
|
const bookmarkOperation = _newValue ? bookmark : unbookmark;
|
|
|
@@ -235,13 +234,12 @@ const PageListItemLSubstance: ForwardRefRenderFunction<ISelectable, Props> = (pr
|
|
|
? (
|
|
|
<a
|
|
|
className="page-segment"
|
|
|
- onClick={pagePathClickHandler}
|
|
|
// eslint-disable-next-line react/no-danger
|
|
|
dangerouslySetInnerHTML={{ __html: linkedPagePathHighlightedLatter.pathName }}
|
|
|
>
|
|
|
</a>
|
|
|
)
|
|
|
- : <a className="page-segment" onClick={pagePathClickHandler}>{linkedPagePathHighlightedLatter.pathName}</a>
|
|
|
+ : <a className="page-segment">{linkedPagePathHighlightedLatter.pathName}</a>
|
|
|
}
|
|
|
</Link>
|
|
|
</span>
|