Skip to content

fix/add getter for editorComponent#353

Open
7eliassen wants to merge 1 commit into
mainfrom
fix/covers-are-not-displayed
Open

fix/add getter for editorComponent#353
7eliassen wants to merge 1 commit into
mainfrom
fix/covers-are-not-displayed

Conversation

@7eliassen
Copy link
Copy Markdown
Contributor

Problem

When the user changes a note, the note screenshot isn't being taken and note covers aren't updating on the server. This happens because the editor holder was assigned before actual mounting and it references null.

Solution

Add element getter for getting actual editorComponent.value.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codex-ui Ready Ready Preview, Comment May 7, 2026 6:25pm

@7eliassen 7eliassen linked an issue May 7, 2026 that may be closed by this pull request
@neSpecc neSpecc requested a review from Copilot May 13, 2026 12:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a bug where element on the exposed editor API captured editorComponent.value at setup time (before mount), causing it to always be null. Converting it to a getter ensures consumers receive the current ref value when accessed.

Changes:

  • Replace static element property with a getter that returns editorComponent.value on access.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@neSpecc neSpecc requested review from e11sy May 13, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing covers for some notes on homepage

3 participants