Last 12 weeks · 0 commits
2 of 6 standards met
Description of Problem: Closes #118 Original issue from vuejs/docs: https://github.com/vuejs/docs/issues/3140 Proposed Solution: Added click and scroll event listeners to properly update anchor link behaviour and prevent the automatic activation of the last link when multiple small blocks are at the bottom of the page
Related issue from vuejs/docs - 3140 The problem with anchor links and clicks is related to the current check for whether the user is at the bottom of the page. This check breaks the behaviour of anchor links when there are small blocks with anchor links at the end of the page (multiple blocks can fit on the screen at once). In this case, the last link is automatically set as active, and this is exactly what needs to be fixed. This behaviour can currently be observed here
Repository: vuejs/theme. Description: VitePress theme for vuejs.org. Stars: 280, Forks: 96. Primary language: Vue. Languages: Vue (62%), CSS (23%), TypeScript (14.3%), JavaScript (0.8%). License: MIT. Topics: vue. Open PRs: 4, open issues: 3. Last activity: 4mo ago. Community health: 37%. Top contributors: yyx990803, kiaking, brc-dd, Jinjiang, Hongbusi, babu-ch, LinusBorg, edimitchel, antfu, bencodezen and others.