Problem with CreateOptionForm

Hi everyone, I'm experiencing a strange bug with CreateOptionForm. I'm using it inside a RelationManager create header action: there's a select which has the CreateOptionForm icon. If a create a new Topic, it kinda distrupts the overflow-y modal changes and so when I'm finished, my overflow-y is hidden. Otherwise, the Create modal works just fine. Any tip to manage this? 1st image - RelationManager create modal 2nd image - CreateOptionForm modal 3rd image - RelationManager create modal with new Topic 4th image - Back to owner record edit without the overflow-y. Thanks for your help!
No description
No description
No description
3 Replies
Davide Cariola
Davide CariolaOP6mo ago
4th photo:
No description
Kenneth Sese
Kenneth Sese6mo ago
@Davide Cariola this appears to be the same as this known issue with nested modals and scrolling. https://github.com/filamentphp/filament/issues/10925
GitHub
Closing Nested Modals Disables Page Scrolling · Issue #10925 · fila...
Package filament/filament Package Version v3.2.6 Laravel Version v10.41.0 Livewire Version v3.0.0.0 PHP Version PHP 8.2.11 Problem description When opening a nested modal, scroll lock is lost on th...
Davide Cariola
Davide CariolaOP6mo ago
Thanks a lot @Kenneth Sese! It seems like no solution has been found yet. For now, I used this workaround in the CreateAction:
->successRedirectUrl(PropertyResource::getUrl('edit', ['record' => $this->getOwnerRecord()]))
->successRedirectUrl(PropertyResource::getUrl('edit', ['record' => $this->getOwnerRecord()]))
I'll let the customer decide if this UX is good or not 😄
Want results from more Discord servers?
Add your server