Select field ->preload() not working in relationship manager attach action

Hi all

->preload() doesn't seem to be working when used on a Select field in a relationship manager attach action:

AttachAction::make()
  ->label('Add users')
  ->recordSelect(
    fn (Select $select) => $select
      ->placeholder('Select users to add to project')
      ->multiple()
      ->preload(),
    ), 


Is that a bug or is there something I'm missing?

Thanks!
Solution
AttachAction::make()
->preloadRecordSelect()
Was this page helpful?