Modal - map not assigned to div

My workaround is to set the underneath page transparent, on modal created/dismissed.

here it is