Skip to content

Commit 89c73ff

Browse files
author
Loïc Mangeonjean
committed
fix: create editor with options
1 parent 06b6ba4 commit 89c73ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MonacoEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ function MonacoEditor ({
156156
containerElement,
157157
{
158158
automaticLayout: true,
159+
// We need to pass options here for the `scrollbar` options to be used
160+
...allOptions,
159161
// We need to override all IStandaloneEditorConstructionOptions fields to prevent conflicts with proper editor options (especially `language`)
160162
value: undefined,
161163
language: undefined,

0 commit comments

Comments
 (0)