mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Fix: Hide search button when search panel is open.
This commit is contained in:
parent
550feae6b5
commit
94d2a64828
1 changed files with 3 additions and 3 deletions
|
|
@ -300,10 +300,10 @@ const MultiLineCodeEditor = (props) => {
|
|||
editable={editable} //for transformations in query manager
|
||||
onCreateEditor={(view) => setEditorView(view)}
|
||||
onUpdate={(view) => {
|
||||
const icon = document.querySelector('.codehinter-search-btn-wrapper');
|
||||
const icon = document.querySelector('.codehinter-search-btn');
|
||||
if (searchPanelOpen(view.state)) {
|
||||
icon.style.top = '44px';
|
||||
} else icon.style.top = '0px';
|
||||
icon.style.display = 'none';
|
||||
} else icon.style.display = 'block';
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue