Text sometimes becomes an un-selectable block

I’m having an odd bug. Sometimes, especially (but not always) after editing or c/p-ing bulleted lists, a note file will break. One or more blocks of text on the note will start behaving oddly, and this will persist to any newly added text, even if I delete everything in the file and restart from scratch.

These blocks will become unselectable and unhighlightable with the mouse cursor. I cant inset my cursor into the text or select part of it. I can highlight the entire block, or I can start at the end of the block and use :left_arrow: and :right_arrow: keys to find the position I want to edit - that’s it.

Once this happens to a note file, its essentially dead forever. I like to take ‘rough’ notes that I then refine, or use a note file to prep and edit long emails, and I can’t do this when half the file has become uncooperative.

Nothing’s wrong with the actual markdown file, and it will open fine in other apps (Zettlr, Chrome, VSCode, and my employer’s in-house IDE). This error happens both when using a PWA and just accessing silverbullet from the browser.

Here’s a video to help explain what I’m seeing:

Any suggestions?

Could you report this as a Github issue? Forum threads aren’t a great way to track this type of stuff. Also mention the browser you’re using. This looks like a CodeMirror issue.

I’m experiencing the same behavior on some pages. Since I see you are using the Zen theme, which I am also using, I think the issue might be related to the CSS of the theme.

Analyzing the code, there are some elements that could be creating invisible layers affecting text selection: a z-index that is too high, the :before pseudo-elements, negative margins (-1rem) and the negative text-indent.

I will check with the browser developer tools to try to identify the cause next time.

@arqtron That looks likely! I suffer from this when in code blocks, the selected text is not visible (but I see artifacts “under” it, on the left border). It did not happened to me to think about z-index. Thanks for the direction (I use custom styling overrides as well). :slight_smile:

1 Like

Sorry for not closing this out sooner, but yes! That was definitely the issue!

Thanks all for the help!