Skip to content

Commit

Permalink
fix: create editor with options
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jan 30, 2024
1 parent 06b6ba4 commit 89c73ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MonacoEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ function MonacoEditor ({
containerElement,
{
automaticLayout: true,
// We need to pass options here for the `scrollbar` options to be used
...allOptions,
// We need to override all IStandaloneEditorConstructionOptions fields to prevent conflicts with proper editor options (especially `language`)
value: undefined,
language: undefined,
Expand Down

0 comments on commit 89c73ff

Please sign in to comment.