© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
7 replies
Никола Стојков

Select field doesn't render

I just updated to version 4, and the Select fields do not render properly at all.
This is my Select code:
Select::make('country_id')
                            ->relationship(name: 'country', titleAttribute: 'country_name')
                            ->createOptionForm([
                                Grid::make(2)
                                    ->schema([
                                        TextInput::make('country_code')
                                            ->label('Код')
                                            ->required()
                                            ->maxLength(255),

                                        TextInput::make('country_name')
                                            ->label('Име')
                                            ->required()
                                            ->maxLength(255),
                                    ]),
                            ])
                            ->label('Држава')
                            ->native(false)
                            ->searchable()
                            ->preload(),
Select::make('country_id')
                            ->relationship(name: 'country', titleAttribute: 'country_name')
                            ->createOptionForm([
                                Grid::make(2)
                                    ->schema([
                                        TextInput::make('country_code')
                                            ->label('Код')
                                            ->required()
                                            ->maxLength(255),

                                        TextInput::make('country_name')
                                            ->label('Име')
                                            ->required()
                                            ->maxLength(255),
                                    ]),
                            ])
                            ->label('Држава')
                            ->native(false)
                            ->searchable()
                            ->preload(),

The field seems to not be populated at all. If I remove native, searchable, and preload, the field works. Tried with/without my theme, same issue.
This console error shows up but I cannot make sense of it:
Uncaught TypeError: Cannot read properties of undefined (reading 'appendChild')
    at ut.render (select.js?v=4.1.7.0:1:19623)
    at new ut (select.js?v=4.1.7.0:1:16154)
    at Proxy.init (select.js?v=4.1.7.0:1:44597)
    at evaluatorMemo (livewire.js?id=df3a17f2:1160:25)
    at tryCatch (livewire.js?id=df3a17f2:1116:14)
    at evaluate (livewire.js?id=df3a17f2:1140:34)
    at Function.<anonymous> (livewire.js?id=df3a17f2:3571:29)
    at flushHandlers (livewire.js?id=df3a17f2:1281:48)
    at stopDeferring (livewire.js?id=df3a17f2:1286:7)
    at deferHandlingDirectives (livewire.js?id=df3a17f2:1289:5)
Uncaught TypeError: Cannot read properties of undefined (reading 'appendChild')
    at ut.render (select.js?v=4.1.7.0:1:19623)
    at new ut (select.js?v=4.1.7.0:1:16154)
    at Proxy.init (select.js?v=4.1.7.0:1:44597)
    at evaluatorMemo (livewire.js?id=df3a17f2:1160:25)
    at tryCatch (livewire.js?id=df3a17f2:1116:14)
    at evaluate (livewire.js?id=df3a17f2:1140:34)
    at Function.<anonymous> (livewire.js?id=df3a17f2:3571:29)
    at flushHandlers (livewire.js?id=df3a17f2:1281:48)
    at stopDeferring (livewire.js?id=df3a17f2:1286:7)
    at deferHandlingDirectives (livewire.js?id=df3a17f2:1289:5)
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Select field with modifyQueryUsing doesn't validate client input
FilamentFFilament / ❓┊help
3y ago
IconColumn doesn't render anything
FilamentFFilament / ❓┊help
3y ago
Select field allowHtml does not render <img> tags.
FilamentFFilament / ❓┊help
2y ago
select field
FilamentFFilament / ❓┊help
3y ago