Skip to content

Fix ThemeSwitcher array props rendering - #48

Merged
CrazyBoy49z merged 2 commits into
mainfrom
fix/theme-switcher-array-props
Sep 25, 2026
Merged

CrazyBoy49z merged 2 commits into
mainfrom
fix/theme-switcher-array-props

Conversation

@CrazyBoy49z

Copy link
Copy Markdown
Member

Fixes an Array to string conversion triggered when the theme switcher injects themes and toggleThemes arrays into the Blade attribute bag.

Changes:

  • pass theme configuration as view data instead of HTML/component attributes;
  • keep scalar themeToggle as view data as well;
  • add a regression test rendering multiple configured themes.

This affects Lazy Admin pages because <x-lazy-header> always renders <x-lazy-theme-switcher/>.

@CrazyBoy49z
CrazyBoy49z merged commit 4523279 into main Sep 25, 2026
25 of 26 checks passed
@CrazyBoy49z
CrazyBoy49z deleted the fix/theme-switcher-array-props branch September 25, 2026 20:44
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

Successfully merging this pull request may close these issues.

1 participant