htmx icon indicating copy to clipboard operation
htmx copied to clipboard

I am using the hx-boost feature and I am experiencing strange problems. Javascripts such as dropdown and modal do not work

Open demirwebx opened this issue 1 year ago • 1 comments

I am using the hx-boost feature and I am experiencing strange problems. Javascripts such as dropdown and modal do not work

https://github.com/user-attachments/assets/82160925-1bf8-4774-8fde-a1f164561006

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap demo</title>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
    <script src="https://unpkg.com/[email protected]"></script>

</head>

<body hx-boost="true">
    <ul>
        <li>
            <a href="{{ route('admin.index') }}">Home</a>
        </li>
        <li>
            <a href="{{ route('admin.index') }}">Home</a>
        </li>
    </ul>
    <div class="dropdown">
        <a class="btn btn-secondary dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
            aria-expanded="false">
            Dropdown link
        </a>

        <ul class="dropdown-menu">
            <li><a class="dropdown-item" href="#">Action</a></li>
            <li><a class="dropdown-item" href="#">Another action</a></li>
            <li><a class="dropdown-item" href="#">Something else here</a></li>
        </ul>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous">
    </script>
</body>

</html>

demirwebx avatar Jul 22 '24 19:07 demirwebx

Can you give a reproducible example for this? Using CodePen or JSFiddle?

alabhyajindal avatar Aug 04 '24 05:08 alabhyajindal