Skip to content

Commit

Permalink
text editor link fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
qvantor committed Nov 3, 2023
1 parent e0ee4f4 commit 1230122
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions libs/layout-editor/src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ import { LayoutEditor as LayoutEditorInternal } from './layout-editor';
const GlobalStyle = createGlobalStyle`
* {
user-select: none;
-webkit-user-drag: none;
outline: none;
}
a {
cursor: default;
}
body {
margin: 0;
}
Expand Down
7 changes: 6 additions & 1 deletion libs/text-editor/src/components/bubble-menu/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ export const Link = () => {
}, [events]);

return (
<Group onClick={(e) => e.stopPropagation()}>
<Group
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
}}
>
{state.open && (
<PopupRoot>
<Input
Expand Down

0 comments on commit 1230122

Please sign in to comment.