Skip to content

Spinner showing in all icons #549

Closed

Description

@odufuwa-segun

Describe the bug
<what's going wrong!?>
Spinner icon is showing up beside all icon buttons, see image below:
Screenshot 2024-01-27 at 6 19 26 PM

Screenshot 2024-01-27 at 6 19 32 PM

Environment: Nextjs

Edit:
I added a CSS style to the editor to hide the spinner, the icon buttons render correctly now. I do hope this isn't masking an issue.
.mantine-ActionIcon-loader {display: none}

To Reproduce
I followed the quick start instructions in https://www.blocknotejs.org/docs/quickstart

Misc

  • Node version: 18.18.0
  • Package manager: npm vs 9.8.1
  • Browser: Chrome, Firefox
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Activity

  1. odufuwa-segun commented on Jan 27, 2024

    @odufuwa-segun
    Author

    Code:

    `"use client";
    import {BlockNoteEditor} from "@blocknote/core";
    import {BlockNoteView, useBlockNote} from "@blocknote/react";
    import "@blocknote/react/style.css";

    export const Document = () => {
    const editor: BlockNoteEditor = useBlockNote({});

    // Renders the editor instance using a React component.
    return <div className="w-full h-full p-2 py-4 overflow-hidden"><BlockNoteView editor={editor}/></div>
    

    }`

  2. hgogoi2012 commented on Jan 29, 2024

    @hgogoi2012

    Has the problem been resolved? I am also experiencing the same issue.

  3. leighton-tidwell commented on Jan 29, 2024

    @leighton-tidwell

    I am experiencing this issue as well

    Edit: I added a CSS style to the editor to hide the spinner, the icon buttons render correctly now. I do hope this isn't masking an issue. .mantine-ActionIcon-loader {display: none}

    This did work for me however

  4. matthewlipski commented on Jan 31, 2024

    @matthewlipski
    Collaborator

    This was kind of a pain to diagnose, but bottom line is that it should be fixed by updating Mantine from 7.4.2 to 7.5.0. I'm not sure exactly what's causing the issue, but there seem to be styles missing in @mantine/core/styles.css for the .m-302b9fb1 selector that's used in the loader in 7.4.2. Using 7.5.0 and disabling these additional styles causes icons to have the loader visible next to them as in the screenshot.

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

Metadata

Metadata

Assignees

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