Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spinner showing in all icons #549

Closed
1 task
odufuwa-segun opened this issue Jan 27, 2024 · 4 comments · Fixed by #553
Closed
1 task

Spinner showing in all icons #549

odufuwa-segun opened this issue Jan 27, 2024 · 4 comments · Fixed by #553
Assignees
Labels
bug Something isn't working prio:high High priority

Comments

@odufuwa-segun
Copy link

odufuwa-segun commented Jan 27, 2024

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 💖
@odufuwa-segun odufuwa-segun added the bug Something isn't working label Jan 27, 2024
@odufuwa-segun
Copy link
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>

}`

@hgogoi2012
Copy link

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

@leighton-tidwell
Copy link

leighton-tidwell commented Jan 29, 2024

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

@matthewlipski
Copy link
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
Labels
bug Something isn't working prio:high High priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants