From 8db64ddb04305d7e556a77d95d908e982b06ff3f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 21 Sep 2026 21:50:58 -0400 Subject: [PATCH] fix: Prevent update loop in link editor search on focus (#13840) Fixes OUTLINE-CLOUD-D7M --- app/editor/components/LinkEditor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/editor/components/LinkEditor.tsx b/app/editor/components/LinkEditor.tsx index 9c5fdde2bb..556ec0c42e 100644 --- a/app/editor/components/LinkEditor.tsx +++ b/app/editor/components/LinkEditor.tsx @@ -180,8 +180,11 @@ const LinkEditor: React.FC = ({ } }; - const handleSearch = async (event: React.ChangeEvent) => { + const handleSearch = (event: React.ChangeEvent) => { const newValue = event.target.value; + if (newValue === query) { + return; + } setQuery(newValue); setSelectedIndex(-1); };