You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to be able to pass some tailwind classes into the modal as part of the event dispatch, so that individual modal event calls could be customised.
Use-case
I am opening a modal which has a dropdown inside it, with the existing overflow-hidden class on the modal.blade.php the dropdown select element flows out of the modal and that overflow is hidden making the dropdown unusable.
Solution options
A potential solution might be to pass the classes as an argument?
This discussion was converted from issue #468 on January 30, 2025 14:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
It would be great to be able to pass some tailwind classes into the modal as part of the event dispatch, so that individual modal event calls could be customised.
Use-case
I am opening a modal which has a dropdown inside it, with the existing
overflow-hidden
class on themodal.blade.php
the dropdown select element flows out of the modal and that overflow is hidden making the dropdown unusable.Solution options
A potential solution might be to pass the classes as an argument?
wire:click="$dispatch( 'openModal', { component: 'webhooks.get-webhook-secret', arguments: { webhook: {{ $hook->id }}, cssClass: 'overflow-visible' } } )"
Or, some way to pass the template file to use into the component, so users can overwrite the template in their local project?
Sidestep
Beta Was this translation helpful? Give feedback.
All reactions