Skip to content

Commit a3aaa89

Browse files
committed
changed popup z-index
1 parent 8f70225 commit a3aaa89

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/features/Map/Map.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,14 @@ class Map extends React.Component {
799799
.setLngLat(coordinates)
800800
.setHTML(`<div>${ncName}</div>`)
801801
.addTo(this.map);
802+
803+
// Not sure if needed in the future:
804+
// A z-index below 0 will have the popup appear underneath the map and therefore be invisible
805+
// This popup still currently appears on top of the DatePicker and RequestDetail modal
806+
if (this.ncPopup.getElement()) {
807+
this.ncPopup.getElement().style.zIndex = '0';
808+
}
809+
802810
};
803811

804812
handleNcMouseLeave = () => {

0 commit comments

Comments
 (0)