I have the same problem in version 9.3 with Bootstrap 5. When the modal opens, the menu opens at the same time and the modal is disabled. It stays under the overlay and becomes practically inaccessible. I also used z-index and the same problem exists.