I have applied patch #92 , but it introduces another issue with layout builder that is if we add a block with entity browser media field and add media item then save, if we edit the block and try to remove media item, the ajax on remove button does not work.
Steps to reproduce:
- Apply this patch #92
- Create a block type with entity browser media field
- Go to layout builder and add the above block and add a media via entity browser and save
- Now edit the block and try to remove the media item.
It seems like in the patch the #ajax for removed button is removed,
- '#ajax' => [ - 'callback' => [get_class($this), 'updateWidgetCallback'], - 'wrapper' => $details_id, - ],