Switch this back to datalist

This commit is contained in:
Lance Pioch 2024-04-19 21:58:45 -04:00
parent 716d298b75
commit d30accbc71

View File

@ -171,11 +171,12 @@ class ServerResource extends Resource
->whereNull('server_id'), ->whereNull('server_id'),
) )
->createOptionForm(fn (Forms\Get $get) => [ ->createOptionForm(fn (Forms\Get $get) => [
Forms\Components\Select::make('allocation_ip') Forms\Components\TextInput::make('allocation_ip')
->options(Node::find($get('node_id'))?->ipAddresses() ?? []) ->datalist(Node::find($get('node_id'))?->ipAddresses() ?? [])
->label('IP Address') ->label('IP Address')
->ipv4()
->helperText("Usually your machine's public IP unless you are port forwarding.") ->helperText("Usually your machine's public IP unless you are port forwarding.")
->selectablePlaceholder(false) // ->selectablePlaceholder(false)
->required(), ->required(),
Forms\Components\TextInput::make('allocation_alias') Forms\Components\TextInput::make('allocation_alias')
->label('Alias') ->label('Alias')