fix: dismiss highlighting tools for annotation taking (#758)

This commit is contained in:
Huang Xin
2025-03-30 02:40:37 +08:00
committed by GitHub
parent ffd179bb06
commit 2daee62b80
@@ -406,11 +406,10 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => {
if (!selection || !selection.text) return;
const { sectionHref: href } = progress;
selection.href = href;
setShowAnnotPopup(false);
setHighlightOptionsVisible(false);
handleHighlight(true);
setNotebookVisible(true);
setNotebookNewAnnotation(selection);
handleHighlight(true);
handleDismissPopup();
};
const handleSearch = () => {