Skip to content

Commit

Permalink
add keys to fls livewire components
Browse files Browse the repository at this point in the history
  • Loading branch information
bezhanSalleh committed Nov 19, 2023
1 parent 51dd84f commit cfc5b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LanguageSwitch.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ public static function boot(): void

FilamentView::registerRenderHook(
name: $static->getRenderHook(),
hook: fn (): string => Blade::render('<livewire:filament-language-switch key=\'fls-panels\' />')
hook: fn (): string => Blade::render('<livewire:filament-language-switch key=\'fls-in-panels\' />')
);

if ($static->isDisplayOn()) {
FilamentView::registerRenderHook(
name: 'panels::body.end',
hook: fn (): string => Blade::render('@livewire(\'filament-language-switch\', key(\'fls-outside-panels\'))')
hook: fn (): string => Blade::render('<livewire:filament-language-switch key=\'fls-outside-panels\' />')
);
}
}
Expand Down

0 comments on commit cfc5b5c

Please sign in to comment.