Skip to content

Commit

Permalink
fix(md): remove the built-in search box (#9386)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
ranihorev and mergify[bot] committed Jul 1, 2021
1 parent be6df68 commit 4b5c0b6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export const DeliveryConfig = () => {
style={{ width: 'auto' }}
className="ace-editor sp-margin-s-top"
editorProps={{ $blockScrolling: true }}
onLoad={(editor) => {
// This removes the built-in search box (as it doesn't scroll properly to matches)
// commands is missing in the type def and therefore we have to cast as any
(editor as any).commands?.removeCommand('find');
}}
/>
</>
)}
Expand Down

0 comments on commit 4b5c0b6

Please sign in to comment.