Vincenzo Luongo
Vincenzo Luongo
> Hey @KinG-InFeT, > > You can use the [callback functions](https://flowbite.com/docs/components/modal/#javascript-behaviour) `onShow` and `onHide` and store it yourself. ok thanks, it would be convenient not to store a lot of...
any update?
any update?
hi @zoltanszogyenyi , thank you for reply, after hide, the background continue to appair
@zoltanszogyenyi zoltanszogyenyi the background is: modal-backdrop not removed by javascript
@zoltanszogyenyi i resolve my problem with small javascript code (very very simple) with jquery ``` $('[data-modal-toggle]').on('click', function (event) { var modal_id = $(this).data("modal-toggle"); if($('#'+modal_id).hasClass("hidden")) { $('[modal-backdrop]').remove(); } }); ```
> @csoutham merged the PR. I think it's safe to close this issue :) hello, the PR however does not solve the problem in the ticket, it only helps not...
any update?
> Hey everyone, > > When opening the modal with JavaScript, please use the `modal.hide();` method by manually adding the event listener to the close button. > > The `data-modal-toggle`...
> > Can you share the code you used to get around this issue please? simple, this is an example code to get the problem out: https://jsfiddle.net/2jkws153/