I checked through the console that when I click on the marker, the click happens twice for a reason that is unclear to me. I have not been able to find a solution yet.
Because of this, there is a bug where the marker's information window opens twice, and then after closing the marker, an empty information window remains.

