Skip to content

v2.2.2

Choose a tag to compare

@FlyNumber FlyNumber released this 12 Mar 01:22

Fixed

  • Dropdown not appearing on client-side navigation — the MutationObserver introduced in 2.2.1 short-circuited when it found stale DOM during React transitions, causing the button to vanish after page swaps. Observer now stays active to catch content swaps and re-inject reliably.
  • Track exact container instance via ref instead of global querySelector to prevent cleanup collisions during page transitions
  • Observe document.body instead of <main> element to survive layout swaps during navigation
  • Unmount stale React roots before creating new ones to prevent memory leaks

Documentation

  • Added note clarifying the dropdown only appears on doc content pages, not category/index pages