From cfa75f9d182632764d3a5dfe45c824216621d0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E5=B4=9B?= Date: Wed, 13 Mar 2024 15:43:57 +0800 Subject: [PATCH 1/2] Fix link bug (#2526) --- .../link/src/components/FloatingLink/FloatingLinkUrlInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/link/src/components/FloatingLink/FloatingLinkUrlInput.tsx b/packages/link/src/components/FloatingLink/FloatingLinkUrlInput.tsx index de956218ad..3f5ff60aa0 100644 --- a/packages/link/src/components/FloatingLink/FloatingLinkUrlInput.tsx +++ b/packages/link/src/components/FloatingLink/FloatingLinkUrlInput.tsx @@ -15,6 +15,7 @@ export const useFloatingLinkUrlInputState = () => { if (ref.current && updated) { setTimeout(() => { ref.current?.focus(); + ref.current!.value = floatingLinkSelectors.url(); }, 0); } }, [updated]); From fe070d1fae4b6d9d2fe86a42cc09055f53fdbda0 Mon Sep 17 00:00:00 2001 From: Ziad Beyens Date: Thu, 14 Mar 2024 16:41:14 +0100 Subject: [PATCH 2/2] Create silent-games-cover.md --- .changeset/silent-games-cover.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/silent-games-cover.md diff --git a/.changeset/silent-games-cover.md b/.changeset/silent-games-cover.md new file mode 100644 index 0000000000..ca8a4079f2 --- /dev/null +++ b/.changeset/silent-games-cover.md @@ -0,0 +1,5 @@ +--- +"@udecode/plate-link": patch +--- + +Fixes #2526