Error: Field shows in incorrect theme if at any point the field is hidden and the triggered to be shown.
Expected Behaviour: If the field is hidden and in dark mode, when shown the field should use the dark mode theming
Actual Behaviour: The field shows in light mode theming colors. If the theme is manually swapped back to Light mode and then dark mode, dark mode colors return on the field
Steps to reproduce:
- Have a CodeField field with a hidden attribute that can be triggered to flip in some way. E.g:
CodeEditor::make('embed_snippet') ->minHeight(768) ->isReadOnly(true) ->showCopyButton(true) ->darkModeTheme('gruvbox-dark') ->lightModeTheme('basic-light') ->columnSpanFull() ->hidden(fn(Get $get) => $get('embed_snippet') == '')
- Trigger the condition to make the hidden condition false.
Error: Field shows in incorrect theme if at any point the field is hidden and the triggered to be shown.
Expected Behaviour: If the field is hidden and in dark mode, when shown the field should use the dark mode theming
Actual Behaviour: The field shows in light mode theming colors. If the theme is manually swapped back to Light mode and then dark mode, dark mode colors return on the field
Steps to reproduce:
CodeEditor::make('embed_snippet') ->minHeight(768) ->isReadOnly(true) ->showCopyButton(true) ->darkModeTheme('gruvbox-dark') ->lightModeTheme('basic-light') ->columnSpanFull() ->hidden(fn(Get $get) => $get('embed_snippet') == '')