I want to check if a certain modal is already open , I have tried this methods (bootstrap-4) but didn't work for me (always give 'false' even if the dialog is open)
$('#myModal').is(':visible');
$('#myModal').data('bs.modal').isShown ;
$('#myModal').hasClass('in');
I checked modal classList , no any new class added to my modal after it became visible to the screen
I don't want event handlers as I don't want to track the status , I just want to check if the dialog was previously open via some other function