Repeater reordering not working on relationship

Hello. I have a repeater on a form using a relationship. I already added the order column, but the sortable arrows are not displaying.

Is this a removed feature, a bug or am I missing something?.

According to the docs. this should work but its not working on my end. A workaround would be to add the DocumentTypeFields with a relation manager, but I think it should work with the repeater.

Here is the sample code
public static function form(Form $form): Form
{
  return $form
    ->columns(1)
    ->schema([
      Forms\Components\Section::make()
        ->inlineLabel()
        ->columns(1)
        ->schema([
          Forms\Components\TextInput::make('name')
            ->required(),
          ]),

          Forms\Components\Section::make(__('Fields'))
            ->schema([
              Forms\Components\Repeater::make('fields')
                ->itemLabel(fn (array $state): ?string => $state['name'] ?? __('Field'))
                ->label(false)
                ->collapsible()
                ->orderColumn('order')
                ->relationship()
                ->reorderableWithDragAndDrop(false)
                ->reorderableWithButtons(true)
                ->grid(1)
                ->columns(4)
                ->minItems(1)
                ->schema([
                  Forms\Components\TextInput::make('name')
                    ->live(onBlur: true)
                    ->required(),
                  
                  Forms\Components\Select::make('type')
                    ->options(fn () => FieldTypes::getArrayWithPrefix())
                    ->required()
                    ->reactive(),
            ])
        ])
    ]);
}


Thanks
Was this page helpful?