This is my code:
<div x-data="{ show: true }">
<input type="text" wire:model="search">
<ul class="list-unstyled search-result"
@click.outside="show = false"
@name-updated.window="show = true" <<--- The problem is here
x-show="show">
...
</ul>
</div>
The search result is working properly. When I click outside of that <ul> the result will be hidden. What I want is to change the value of show to true after livewire update in order to show the result again.
How can I do that?