#partiallyRenderComponentsAfterStateUpdated() not rerendering suffix()

8 messages · Page 1 of 1 (latest)

somber flint
#

Is partiallyRenderComponentsAfterStateUpdated() supposed to rerender the suffix here? I can't get it to work.

Repeater::make('BillOfMaterials')
  ->schema([
    Select::make('Component')
      ->searchable()
      ->getSearchResultsUsing(fn ($search) => StockCode::search($search))
      ->getOptionLabelUsing(fn ($value) => StockCode::find($value)?->getLabel())
      ->live()
      ->partiallyRenderComponentsAfterStateUpdated(['QtyPer']),
    TextInput::make('QtyPer')
      ->suffix(fn (Get $get) => StockCode::find($get('Component'))?->StockUom),
  ])
reef canopyBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

somber flint
#

This problem seems to only happen inside the repeater

#

Rerendering the whole repeater using ->partiallyRenderComponentsAfterStateUpdated(['../']) seems to have solved the problem, but not ideal...

remote tusk
#

are you using table inside Repeater? If yes, it should be fixed in the next release.

somber flint
#

Sorry, yes it was a table repeater.

reef canopyBOT
remote tusk