Skip to content

Conversation

@Vishnu-Varthan1
Copy link

@Vishnu-Varthan1 Vishnu-Varthan1 commented Oct 18, 2025

Closes #3220.

Fixes the unwanted scroll-to-top and double-click bug when expanding or collapsing property cards in the plugin docs.

  • Uses a simple boolean toggle (isExpanded) for expand/collapse.
  • Removes any scrollIntoView or scrollTo logic from property card toggles.
  • Ensures Table of Contents navigation still scrolls correctly.
    Testing
  • Single-click to expand/collapse each property card works as expected, without scrolling the page.
  • Table of Contents navigation still scrolls to sections correctly.

@github-project-automation github-project-automation bot moved this to To review in Pull Requests Oct 18, 2025
@MilosPaunovic
Copy link
Member

Just a small note for the future, if you could use GitHub Keywords when opening PRs to connect it to the proper issue (to automate the entire process a bit more), it would be super helpful to us. You can read a bit more about it here (I've added closing keyword for this particular issue).

Comment on lines +47 to +58
setup() {
const isExpanded = ref(false);
function toggleProperty() {
isExpanded.value = !isExpanded.value;
}
return {
isExpanded,
toggleProperty
};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

why setup ? maybe it's easier to move to <script setup lang="ts"> if not can you handle with methods ?

@MilosPaunovic MilosPaunovic added kind/external Pull requests raised by community contributors area/frontend Needs frontend code changes labels Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/frontend Needs frontend code changes kind/external Pull requests raised by community contributors

Projects

Status: To review

Development

Successfully merging this pull request may close these issues.

Plugin Docs Bugs & Enhancement Proposal for the Plugins website

4 participants