데스크톱 앱 팝업에서 팝업안뜨는 문제수정
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { INDICATOR_REGISTRY, type IndicatorDef } from '../utils/indicatorRegistry';
|
||||
import { MAIN_INDICATOR_LABELS } from '../utils/indicatorMainTab';
|
||||
|
||||
@@ -76,7 +77,7 @@ const IndicatorCustomTabEditor: React.FC<IndicatorCustomTabEditorProps> = ({
|
||||
onSave(trimmed, ordered);
|
||||
};
|
||||
|
||||
return (
|
||||
return ReactDOM.createPortal(
|
||||
<div
|
||||
className="ind-tab-editor-overlay"
|
||||
onMouseDown={e => { if (e.target === e.currentTarget) onClose(); }}
|
||||
@@ -163,7 +164,8 @@ const IndicatorCustomTabEditor: React.FC<IndicatorCustomTabEditorProps> = ({
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>,
|
||||
document.body,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user