From 274422704c8f33f035cd555783fac8ccf5e54742 Mon Sep 17 00:00:00 2001 From: Silver Lila Date: Sat, 18 May 2024 15:00:58 +0200 Subject: [PATCH] fix add type attribute to prevent form submission (#163) Added type=button to prevent unnecessary form submissions when the button is used within a form. This resolves issues where interacting with the button inadvertently triggers form submissions. --- packages/plugins/embed/src/ui/Placeholder.tsx | 1 + packages/plugins/file/src/ui/Placeholder.tsx | 1 + packages/plugins/image/src/ui/Placeholder.tsx | 1 + packages/plugins/video/src/ui/Placeholder.tsx | 1 + .../action-menu/src/components/DefaultActionMenuRender.tsx | 1 + .../tools/link-tool/src/components/DefaultLinkToolRender.tsx | 2 ++ 6 files changed, 7 insertions(+) diff --git a/packages/plugins/embed/src/ui/Placeholder.tsx b/packages/plugins/embed/src/ui/Placeholder.tsx index a908e399b..faa5e1b87 100644 --- a/packages/plugins/embed/src/ui/Placeholder.tsx +++ b/packages/plugins/embed/src/ui/Placeholder.tsx @@ -20,6 +20,7 @@ const Placeholder = ({ attributes, children, blockId }) => { contentEditable={false} >