-
-
Notifications
You must be signed in to change notification settings - Fork 599
Description
I scroll on the homepage demo editor, im using brave browser, i can't scroll, once i click to scroll, it gets hidded/destroyed.
NOTE: i tryed to fix it/debug, but have no idea why this happens, i tryed to remove the onblur event 'OnCustomHandle' attached to the .bn-editor and it works, but i don't know how to keep it that way. tryed to mess with index.js which has this event, and no luck. reinstalled everything, no luck.
here's the code i run in the brave browser console to fix... but doesn't last...
export default function removeBlur() {
const editorElement = document.querySelector('.bn-editor');
if (!editorElement); // Ensure the element exists
const listeners = getEventListeners(editorElement).blur;
console.log('REMOVED', listeners[0].listener)// Get blur listeners
editorElement.removeEventListener('blur', listeners[0].listener); // Remove second listener
}
i afraid adding this could result in more bugs for other browsers... i would really appreaciate a response. i just can't change blocknotejs with any other editor, including, tiptap, lexical, yoopto... wethever it is. blocknotejs is the future.
Misc
- Node version: v21.6.2
- Package manager: npm
- Browser: brave