Skip to content

Links not working in Safari - but fine in Firefox #16

Closed

Description

@Maulwurf16

First of all: Absolutely stunning piece of Software - kudos and Thank you!

Writing text and clicking on a word generates the popup with the option of inserting a link. This works absolutely fine in Firefox, but not safari.
In Safari, the focus jumps to the upper left of the screen - see attached image. The Explanation text is displayed in the upper left corner and the text input is not displayed.

Bildschirmfoto 2024-06-30 um 10 11 17

Activity

  1. Philipinho commented on Jun 30, 2024

    @Philipinho
    Member

    I appreciate your feedback.

    I will work on a fix.

  2. olivierIllogika commented on Jul 19, 2024

    @olivierIllogika
    Contributor

    If you click on Bold, Italic, Underline, Stike, Code or Add link buttons on Safari, it makes the whole menu disappear (it does not on Chrome). I'm guessing the Add link popover is then unable to position itself properly.

    However, if you first click on the Text button to have the text style dropdown appear, clicking these buttons no longer make the menu disappear immediately and so it's possible to get the Add link popover to appear 🤔 :

    Screen Shot 2024-07-19 at 4 08 32 PM

  3. olivierIllogika commented on Jul 22, 2024

    @olivierIllogika
    Contributor

    This tiptap issue. Indeed, the following Event.stopPropagation() workaround seems to fix it, but not sure if it's the proper location for the fix, if it should be applied elsewhere too and if it has undesirable consequences (only tested Chrome and Safari on Macos so far).

    --- a/apps/client/src/features/editor/components/bubble-menu/bubble-menu.tsx
    +++ b/apps/client/src/features/editor/components/bubble-menu/bubble-menu.tsx
    @@ -127,7 +127,12 @@ export const EditorBubbleMenu: FC<EditorBubbleMenuProps> = (props) => {
     
       return (
         <BubbleMenu {...bubbleMenuProps}>
    -      <div className={classes.bubbleMenu}>
    +      <div className={classes.bubbleMenu}
    +       onMouseDown={(e) => {
    +          e.stopPropagation();
    +          e.preventDefault();
    +        }}
    +      >
             <NodeSelector
               editor={props.editor}
               isOpen={isNodeSelectorOpen}
    
  4. ClamsyHub commented on May 30, 2025

    @ClamsyHub

    maybe the same as: #1137

  5. Philipinho commented on Jun 11, 2025

    @Philipinho
    Member

    Fix will be available in the next version release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions