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

Flux Navlist items lose focus when livewire update occurs #688

Open
colinmac17 opened this issue Nov 16, 2024 · 0 comments
Open

Flux Navlist items lose focus when livewire update occurs #688

colinmac17 opened this issue Nov 16, 2024 · 0 comments

Comments

@colinmac17
Copy link

colinmac17 commented Nov 16, 2024

Hi there! 👋

Im attaching a screen recording of the behavior. Basically, when a sidebar navlist item is on a page with a livewire component, and that component updates, the current page item loses it's focus. Ideally, the css that shows the user the current page would not go away when a component udpates.

Code of sidebar on the page.

<div class="hidden lg:block">
        <flux:navlist {{$attributes->merge(['class' => 'w-48 col-span-1'])}}>
            <flux:navlist.item href="{{route('app.colleges.index')}}" icon="magnifying-glass-circle" wire:navigate.hover>Search</flux:navlist.item>
            <flux:navlist.item href="{{route('app.colleges.target-list')}}" icon="heart" wire:navigate.hover>Target List</flux:navlist.item>
            <flux:navlist.item href="{{route('app.colleges.preferences')}}" icon="adjustments-horizontal" wire:navigate.hover>Preferences</flux:navlist.item>
        </flux:navlist>
    </div>

Screen recording: https://share.cleanshot.com/9grbhl8c

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

1 participant