Skip to content

fix: no error when a drop is hidden while updating its position - #3702

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/editor-linkpanel-error
Oct 13, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/editor-linkpanel-error

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • OcDrop update: update() re-checks the drop after computing its position, so hiding the drop meanwhile (e.g. confirming the Markdown link panel with Enter) no longer throws Cannot read properties of null (reading 'style').

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest)
  • test case 1: calling update() and hiding the drop before the position resolves does not throw

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit b550358 into main Oct 13, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/editor-linkpanel-error branch October 13, 2026 12:52
@openclouders openclouders mentioned this pull request Oct 13, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confirming a link in the Markdown link panel with Enter throws an error

2 participants