Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Vishal007's avatar

List Page Script Auto hiding when click button

when i run project and show a user list page then script working correctoly but when click to create user button then my script is not working for list page how to solve it i have used listener for create user button as following button is

<button wire:click="createUserButton" class="bg-blue-500">{{ __('Add User') }}</button>

and component is

public function createUserButton()
{
    $listener = new CreateUserListener(); // listener
    $listener->handle();
}
0 likes
5 replies
Chingy's avatar

@Vishal007 I mean where is the script in the post. You can't expect us to provide a solution without fully knowing what's in the code.

Component 's php and blade file. And also CreateUserListener. What's that?

Vishal007's avatar

@Chingy please check

Flowbite css datatable example i am not able to send link here

i have use this datatable into my livewire component but on button click i can called a listern for go to another window then script is not work

Chingy's avatar

@Vishal007 Please post the code of your component's php and blade file. Not a link

Please or to participate in this conversation.