I am currently utilizing the newest Bootstrap version of Offcanvas. Interestingly, there seems to be an issue with the close button functionality. When I click the "Add to Cart" button, the offcanvas displays properly. However, the "Add to Cart" button itself appears lighter, and remains clickable (which should not be the case as it is meant to be disabled). When clicked, it behaves as a close button, causing the canvas to close unintentionally. How can I address this issue?
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a3835352e292e283b2a1a6f74697468">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<div class="product-button-group">
<a class="product-like-icon" href="#">
<i class="fas fa-heart"></i>
</a>
<button class="add-to-cart" type="button" data-bs-toggle="offcanvas" data-bs-target="#staticBackdrop" aria-controls="staticBackdrop">
<i class="fa fa-shopping-bag"></i>ADD TO CART
</button>
<div class="offcanvas offcanvas-start" data-bs-backdrop="static" tabindex="-1" id="staticBackdrop" aria-labelledby="staticBackdropLabel">
<div class="offcanvas-header">
<h3 class="offcanvas-title">
<i class="fa-solid fa-bag-shopping"></i> Shopping Cart
</h3>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="col-sm-12">
<div class="row">
<div class="col-sm-3">
<img src="" alt="mutlu cat shop" width="100px" />
</div>
<div class="col-sm-9">
<h6>Zanies® Twice as Nice Mice</h6>
<div class="price"><span>$30.00</span> $20.00</div>
<input class="product-qty" type="number" name="product-qty" min="0" max="10" value="1">
</div>
</div>
</div>
<hr class="hr-cart">
<a class="complete-shopping position-absolute bottom-0 end-0" href="#"> Complete shopping</a>
</div>
</div>
<a class="product-compare-icon" href="#"><i class="fas fa-random"></i></a>
</div>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c6a4a9a9b2b5b2b4a7b686f3e8f5e8f4">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>