File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/jsonforms-vuetify-renderers/src/components/VMonacoEditor Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ import {
9999 watchEffect ,
100100} from ' vue' ;
101101import { useTheme } from ' vuetify' ;
102- import { VField , VInput } from ' vuetify/components' ;
102+ import { VField , VInput , VCounter } from ' vuetify/components' ;
103103
104104import { callEvent , type VFieldProps , type VInputProps } from ' ../common' ;
105105import (' ../../util/monaco-setup' );
@@ -384,7 +384,11 @@ onMounted(() => {
384384 editor .value = monaco .editor .create (containerRef .value , {
385385 // default props
386386 fontFamily: updateOptions .fontFamily ?? parentStyle ?.fontFamily ,
387- fontSize: updateOptions .fontFamily ?? parentStyle ?.fontSize ,
387+ fontSize:
388+ (updateOptions .fontSize ??
389+ (parentStyle ?.fontSize && ! isNaN (parseFloat (parentStyle .fontSize ))))
390+ ? parseFloat (parentStyle ! .fontSize )
391+ : undefined ,
388392 lineHeight: updateOptions .lineHeight ?? parentStyle ?.lineHeight ,
389393 letterSpacing: updateOptions .letterSpacing ?? parentStyle ?.letterSpacing ,
390394 minimap: { enabled: false },
You can’t perform that action at this time.
0 commit comments