-
I have a modal defined, but while clicking on this link triggers the event (I can pick it up in an event listener) the modal never appears. Any ideas?
The modal controller is App\Controllers\Livewire\Personal\RequestModals\AcceptSharingRequestModal. |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 4 replies
-
Are you using Tailwind 3 by any chance? |
Beta Was this translation helpful? Give feedback.
-
yes, I'm using it. is that a problem?
|
Beta Was this translation helpful? Give feedback.
-
same here, appears only overlay (with 2 scroll bars [one nested behind overlay]) & no content from blade file. using just fresh setup. |
Beta Was this translation helpful? Give feedback.
-
Experiencing the same here, the overlay appears with a scrollbar but no content is shown. Using Tailwind 3 (latest version) too. Anything inside the Versions used: Here's a GitHub repo with the problem: https://github.com/LewisLarsen/modal |
Beta Was this translation helpful? Give feedback.
-
do you guys have the same console issue? |
Beta Was this translation helpful? Give feedback.
-
Did you whitelist the modal in your tailwind config? module.exports = {
content: [
'./vendor/wire-elements/modal/**/*.blade.php',
],
options: {
safelist: [
"sm:max-w-sm",
"sm:max-w-md",
"sm:max-w-lg",
"sm:max-w-xl",
"sm:max-w-2xl",
"sm:max-w-3xl",
"sm:max-w-4xl",
"sm:max-w-5xl",
"sm:max-w-6xl",
"sm:max-w-7xl"
]
},
}; |
Beta Was this translation helpful? Give feedback.
-
I have given it a go but unfortunately I'm still getting no content in the modal, only a dimmed background with the changes added to my tailwind.config.js. |
Beta Was this translation helpful? Give feedback.
-
Hello, Same here... Dimmed background, and no content. |
Beta Was this translation helpful? Give feedback.
-
I had the same problem and needed to change the modal classes. The content is actually there, but out of viewport. If you scroll down, you should see the content. |
Beta Was this translation helpful? Give feedback.
-
What did you change the classes to? The issue may be closed if that's the solution! :) |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same issue, it happens if I use modalMaxWidth settings higher than 2xl:
used versions
no issues if I use 2xl or xl: xl 2xl 3xl [3xl] If I reduce the screen width, the modal appears from below and starts going up as I narrow the window: [3xl] and it suddenly pops in position for width<640 any idea? 🤔 |
Beta Was this translation helpful? Give feedback.
-
I changed a few things to get it working (and to apply custom behaviour). This is my current
|
Beta Was this translation helpful? Give feedback.
-
@MrMooky changes solve the issue specifically, you only need to change
to
at line 20 just wondering if this breaks something else should we open a PR to fix it? |
Beta Was this translation helpful? Give feedback.
-
I don't think so. I'd guess this was supposed to be a setting for mobile screens, so overlays appear at the bottom and are easier to reach. |
Beta Was this translation helpful? Give feedback.
-
Confirm this. As it mentioned before, just add safelist classes to tailwind config:
|
Beta Was this translation helpful? Give feedback.
-
I have the same issue. Had to publish the layout so that it is picked up by the tailwind compiler. Model content appears at the bottom of the screen on mobile widths but disappears on larger screens. Adding safelist as mentioned above makes no difference |
Beta Was this translation helpful? Give feedback.
-
This problem is still there. None of the above solutions worked. The modal still opens at the bottom of the page. Any suggestions will be useful. |
Beta Was this translation helpful? Give feedback.
-
This just started happening to all of my projects that use v1 of this package, seemingly overnight. The only fix I have figured out is to just upgrade to Livewire 3 and v2 of this package which I just can't afford to do right now for all of these applications. It does fix the problem though. I have tried everything in this thread to no avail, any idea what may have caused this? |
Beta Was this translation helpful? Give feedback.
Did you whitelist the modal in your tailwind config?