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(),
),
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()
AttachAction::make()
->preloadRecordSelect()
...
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira14mo ago
AttachAction::make()
->preloadRecordSelect()
AttachAction::make()
->preloadRecordSelect()
binaryfire
binaryfireOP14mo ago
Ah right, missed that. Works, thanks!
Want results from more Discord servers?
Add your server