Skip to content

Conversation

@ameyshigam
Copy link

Issue solved #5369
BUG Popular Tags are unresponsive.

  1. The problem was in the click event handler for the popular tags in main.js . The original code had several issues:
  • It was using undeclared variables ( selTags , selectedTag , tagID )
  • The preparePopTagName function was only extracting the first word of the tag name
  • It wasn't preventing the default link behavior
  1. My fix includes:

    • Adding e.preventDefault() to prevent the default link behavior
    • Using const to properly declare variables
    • Improving the tag text extraction by splitting on the parenthesis and trimming
    • This ensures the full tag name is captured correctly, not just the first word

The tags should now be interactive and properly filter the projects when clicked. This matches the expected behavior where clicking on a popular tag should filter the projects list to show only projects with that tag.

@netlify
Copy link

netlify bot commented Oct 3, 2025

Deploy Preview for up-for-grabs-test-bench ready!

Name Link
🔨 Latest commit 21b246b
🔍 Latest deploy log https://app.netlify.com/projects/up-for-grabs-test-bench/deploys/68e836671cc7d400081e6bd2
😎 Deploy Preview https://deploy-preview-5382--up-for-grabs-test-bench.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shiftbot
Copy link
Contributor

shiftbot commented Oct 3, 2025

👋 I'm a robot checking the state of this pull request to save the human reviewers time. I don't see any changes under _data/projects/ so I don't have any feedback here.

As you make changes to this pull request, I'll re-run these checks.

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.

2 participants