@daeryun/dr_components 1.1.11 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,8 +15,8 @@ const MapModal = ({ showModal, setShowModal, mapPath, mapInfo }) => {
15
15
  }, [setShowModal]);
16
16
  if (!showModal)
17
17
  return null;
18
- return (<div>
19
- <div className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto overflow-x-hidden outline-none focus:outline-none">
18
+ return (<>
19
+ <div className="fixed inset-0 z-[9999] flex items-center justify-center overflow-y-auto overflow-x-hidden outline-none focus:outline-none">
20
20
  <div className="fixed inset-0 bg-black opacity-70"></div>
21
21
  <div className="relative w-[90%] ">
22
22
  <div className="relative mx-auto my-6 max-w-3xl overflow-x-auto" ref={wrapperRef}>
@@ -43,6 +43,6 @@ const MapModal = ({ showModal, setShowModal, mapPath, mapInfo }) => {
43
43
  </div>
44
44
  </div>
45
45
  <div className="fixed inset-0 z-40 bg-black opacity-25"></div>
46
- </div>);
46
+ </>);
47
47
  };
48
48
  export default MapModal;
@@ -29,8 +29,8 @@ const MapModal = ({ showModal, setShowModal, mapPath, mapInfo }: MapModalProps)
29
29
  if (!showModal) return null;
30
30
 
31
31
  return (
32
- <div>
33
- <div className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto overflow-x-hidden outline-none focus:outline-none">
32
+ <>
33
+ <div className="fixed inset-0 z-[9999] flex items-center justify-center overflow-y-auto overflow-x-hidden outline-none focus:outline-none">
34
34
  <div className="fixed inset-0 bg-black opacity-70"></div>
35
35
  <div className="relative w-[90%] ">
36
36
  <div className="relative mx-auto my-6 max-w-3xl overflow-x-auto" ref={wrapperRef}>
@@ -69,7 +69,7 @@ const MapModal = ({ showModal, setShowModal, mapPath, mapInfo }: MapModalProps)
69
69
  </div>
70
70
  </div>
71
71
  <div className="fixed inset-0 z-40 bg-black opacity-25"></div>
72
- </div>
72
+ </>
73
73
  );
74
74
  };
75
75
 
@@ -40,7 +40,9 @@ const MapPage = ({ officeList, mapInfo }) => {
40
40
  if (mapInfo) {
41
41
  setSelectRegion(mapInfo.modified_br_name || '');
42
42
  if (mapInfo.modified_br_name) {
43
- scrollToTarget();
43
+ setTimeout(() => {
44
+ scrollToTarget();
45
+ }, 100);
44
46
  }
45
47
  }
46
48
  }, [mapInfo]);
@@ -35,7 +35,9 @@ const MapPage = ({ officeList, mapInfo }: { officeList: IOfficeListTypes[]; mapI
35
35
  if (mapInfo) {
36
36
  setSelectRegion(mapInfo.modified_br_name || '');
37
37
  if (mapInfo.modified_br_name) {
38
- scrollToTarget();
38
+ setTimeout(() => {
39
+ scrollToTarget();
40
+ }, 100);
39
41
  }
40
42
  }
41
43
  }, [mapInfo]);