Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown and drawer components do not works when the table is paginated #699

Open
alkadoHs opened this issue Oct 31, 2023 · 7 comments
Open

Comments

@alkadoHs
Copy link

I'm using data tables to enhance pagination, filtering and searching, but when the table is paginated the dropdowns and drawers of the next page stops to work and those on the first page works fine.
I don't understand why this issue is happening.

@alkadoHs alkadoHs changed the title Dropdown and drawer components do not when the table is paginated Dropdown and drawer components do not works when the table is paginated Oct 31, 2023
@zoltanszogyenyi
Copy link
Member

Hey @alkadoHs,

Did you make sure that the IDs of these dropdowns and modals are unique even across paginations?

Cheers,
Zoltan

@alkadoHs
Copy link
Author

Hey @alkadoHs,

Did you make sure that the IDs of these dropdowns and modals are unique even across paginations?

Cheers,
Zoltan

Yes, they are unique, I'm looping through the data from the server and providing each modal and it's corresponding trigger button with unique id of the product. But it doesn't work 😔

@zoltanszogyenyi
Copy link
Member

@alkadoHs what framework are you using?

@alkadoHs
Copy link
Author

@alkadoHs what framework are you using?

Codeigniter, a PHP framework

@zoltanszogyenyi
Copy link
Member

Do you have an example online somewhere? It's hard to guess why it wouldn't work.

Did you check the FlowbiteInstances object to see what's going on?

@xujiongze
Copy link

xujiongze commented Feb 20, 2024

@zoltanszogyenyi
Same problem
Im using laravel10 + vue3 + inertia
In inertia, using insted "This component is a light wrapper around a standard anchor link that intercepts click events and prevents full page reloads"
And all page opened with Link, can't use offcanva(Drawer)

Solution for inertia:

import { router } from '@inertiajs/vue3'

router.on('success', () => {
initFlowbite();
})

@embarekmessai
Copy link

embarekmessai commented Mar 28, 2024

@zoltanszogyenyi

Same problem
Im using laravel10 + vue3 + inertia
In inertia, using insted "This component is a light wrapper around a standard anchor link that intercepts click events and prevents full page reloads"
And all page opened with Link, can't use offcanva(Drawer)
Solution for inertia:

import { router } from '@inertiajs/vue3'

router.on('success', () => { initFlowbite(); })

Thank you, this helped me

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

No branches or pull requests

4 participants