Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Collapse Button is not working (Bootstrap 5)

I'm working with Vue 3 and Bootstrap 5.

I want to use a Collapse inside of my project but I'm only able to open the collapse but once it's open it will not close again when I press on my button.

I've just copy paste it from the official Bootstrap-Site and I have no clue why mine is not working.

Thanks for helping me out!

<template>
  <div class="row mt-5 ps-4 pe-4">
    <button
      class="btn btn-success"
      type="button"
      data-bs-toggle="collapse"
      data-bs-target="#collapse_test"
      aria-expanded="false"
      aria-controls="collapse_test"
    >
      <h2 class="mt-0 mb-1">
        <i class="bi bi-boxes me-2"></i>TEST BUTTON
      </h2>
    </button>

    <div class="collapse" id="collapse_test">
      <div class="row mt-4">
        TEST
      </div>
    </div>
  </div>
</template>

EDIT: It's always collapsing but it stays open (show).

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!