Modal Blade component background not showing transparent.
I've created two modals:
1. A slide-over modal to display the number of products in the cart.
2. A pop-up modal that appears when removing a product from the cart.
When there are only 2 products in the cart, the remove modal pop-up displays correctly with a transparent background. However, when there are 10 products in the cart, the remove modal pop-up shows with a dark black background instead of the transparent one.
How can I fix this? Can anyone help?
12 Replies
Sounds like you are opening 10 modals but hard to help because you didn’t share any code.
Please find attachment of file for your reference.
The "Remove product" modal code, defined in the table body, has an issue. Please refer to the attached file, products-presentation-cart.blade.php.
how do I manage nested modal blade component to avoid black background?
Are you repeating that modal code by any chance? E.g. through a for loop?
Thank you for your response. The issue with the modal's black background has been resolved. However, when I select a file to upload, the modal's height behaves inconsistently and blinks. I have attached a video and file for your reference.
The "Generate Presentation" modal code. having issue in the file "Products-presentation-cart.blade.php"
I have try wire:ignore.self but its not working .can you please help me for the same ?
Seems your video is also dark :squint:
The black background issue has been resolved. I have posted a video for another issue with modal.
When I select a file to upload, the modal's height behaves inconsistently and blinks.
The modal is flickering because the submit button is hidden during upload. Is this mybe because of
wire:loading.remove="generatePresentation"
? Probably some wire:loading
stuff at least.You're absolutely correct.
I'm encountering another issue. When I use the "Add To Presentation" action in the Filament table, the Livewire event
$this->dispatch('addProductsToLocalStorage', $cartData);
isn't being triggered. How can I properly dispatch the event to store data in local storage from the Filament table?ProductResource.php table action code .
The
addToPresentation
method with the event this->dispatch('addProductsToLocalStorage', $cartData)
isn't firing from the ProductQuote.php
file, so it's not being detected in product-quote.blade.php
.