conditionally hidden section not working due to searchable() on select

I'm trying to conditionally hide a section on a form, and it was working yesterday, and now it's not working. If I remove ->searchable() from the select, it works as expected.

public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Section::make()->schema([
                    Select::make('quickbooks_vendor_id')
                        ->label('Quickbooks Vendor')
                        ->options(CreateVendor::$vendors)
                        ->searchable()
                        ->loadingMessage('Loading vendors...')
                        ->suffixAction(
                            Action::make('refreshVendors')
                                ->label('Refresh Vendors')
                                ->icon('heroicon-o-arrow-path')
                                ->action(fn () => CreateVendor::getVendors(true))
                        )
                        ->live(),
                ])->columnSpan(1),
                Section::make()->schema([
                    TextInput::make('display_name')->required()->rules('max:255'),
                    
                ])->hidden(fn (Get $get): bool => ($get('quickbooks_vendor_id')) ? false : true),
            ]);
    }


The only thing I've changed since yesterday is I added some logic to the CreateRecord class to handle getting the vendors, but even if I remove the references to that and just hardcode some options, it still doesn't work.
Was this page helpful?