From 6d2adbbf962843c510c1491c8db69e8292f1de31 Mon Sep 17 00:00:00 2001 From: Huei Tan Date: Tue, 11 Jun 2024 14:51:59 +0200 Subject: [PATCH] do not remove preview when W icon is clicked --- src/link/edit.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/link/edit.js b/src/link/edit.js index f9cb159..e6de2fa 100644 --- a/src/link/edit.js +++ b/src/link/edit.js @@ -50,9 +50,7 @@ const Edit = ( { const toolbarButtonRef = useRef(); const formatButtonClick = () => { - if ( isActive ) { - removeAttributes(); - } else { + if ( ! isActive ) { startAddingPreview(); } };