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!3 Replies
4th photo:
@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...
Thanks a lot @Kenneth Sese! It seems like no solution has been found yet.
For now, I used this workaround in the CreateAction:
I'll let the customer decide if this UX is good or not 😄