From 4bfcd973b4566992c714ae7f0f1c8ff26bccda02 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 11 Oct 2024 21:49:02 +0300 Subject: [PATCH] tippy-sticky-fix --- package.json | 1 + src/components/Editor/Editor.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package.json b/package.json index a04af18f..4b6b42c2 100644 --- a/package.json +++ b/package.json @@ -118,6 +118,7 @@ "stylelint-scss": "^6.7.0", "swiper": "^11.1.14", "throttle-debounce": "^5.0.2", + "tippy.js": "^6.3.7", "tslib": "^2.7.0", "typescript": "^5.6.3", "typograf": "^7.4.1", diff --git a/src/components/Editor/Editor.tsx b/src/components/Editor/Editor.tsx index b4c2ffa4..901c1db9 100644 --- a/src/components/Editor/Editor.tsx +++ b/src/components/Editor/Editor.tsx @@ -19,6 +19,7 @@ import { FullBubbleMenu } from './Toolbar/FullBubbleMenu' import { IncutBubbleMenu } from './Toolbar/IncutBubbleMenu' import { ArticleNode } from './extensions/Article' import { TrailingNode } from './extensions/TrailingNode' +import { sticky } from 'tippy.js' import './Editor.module.scss' @@ -86,6 +87,7 @@ export const EditorComponent = (props: Props) => { return result }, tippyOptions: { + plugins: [sticky], sticky: true } }),