diff --git a/.changeset/sweet-yaks-sing.md b/.changeset/sweet-yaks-sing.md deleted file mode 100644 index 7c99414db0..0000000000 --- a/.changeset/sweet-yaks-sing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@udecode/plate-ai': patch ---- - -fix diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index b8eca8545f..e0009db4fe 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,5 +1,11 @@ # @udecode/plate-ai +## 39.2.10 + +### Patch Changes + +- [`6477c29b42449bebc62225d91927642ac7062032`](https://github.com/udecode/plate/commit/6477c29b42449bebc62225d91927642ac7062032) by [@zbeyens](https://github.com/zbeyens) – fix + ## 39.2.9 ### Patch Changes diff --git a/packages/ai/package.json b/packages/ai/package.json index 3e1f0fadd4..4d7b8d6b84 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-ai", - "version": "39.2.9", + "version": "39.2.10", "description": "Text AI plugin for Plate", "keywords": [ "plate", diff --git a/packages/cursor/CHANGELOG.md b/packages/cursor/CHANGELOG.md index fcb15f63dc..40caeb127b 100644 --- a/packages/cursor/CHANGELOG.md +++ b/packages/cursor/CHANGELOG.md @@ -1,5 +1,11 @@ # @udecode/plate-cursor +## 39.2.11 + +### Patch Changes + +- [#3666](https://github.com/udecode/plate/pull/3666) by [@felixfeng33](https://github.com/felixfeng33) – Fix overlay position when there a fixed height of editor. + ## 39.0.0 ## 38.0.0 diff --git a/packages/cursor/package.json b/packages/cursor/package.json index 7ae057f00b..2f3e41d51d 100644 --- a/packages/cursor/package.json +++ b/packages/cursor/package.json @@ -1,6 +1,6 @@ { "name": "@udecode/plate-cursor", - "version": "39.0.0", + "version": "39.2.11", "description": "Cursor for Plate React", "keywords": [ "plate", diff --git a/packages/cursor/src/hooks/useCursorOverlayPositions.ts b/packages/cursor/src/hooks/useCursorOverlayPositions.ts index 9f144153e4..fabfe80480 100644 --- a/packages/cursor/src/hooks/useCursorOverlayPositions.ts +++ b/packages/cursor/src/hooks/useCursorOverlayPositions.ts @@ -47,6 +47,7 @@ export const useCursorOverlayPositions = ({ const contentRect = containerRef.current!.getBoundingClientRect(); xOffset = contentRect.x; yOffset = contentRect.y; + yOffset -= containerRef.current.scrollTop; } let selectionRectsChanged =