Skip to content

Commit 21d8048

Browse files
committedSep 1, 2023
fix: fix height/minHeight/maxHeight/width/minWidth/maxWidth default value.
1 parent 7f5e3d4 commit 21d8048

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎core/src/useCodeMirror.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ export function useCodeMirror(props: UseCodeMirror) {
2424
extensions = emptyExtensions,
2525
autoFocus,
2626
theme = 'light',
27-
height = '',
28-
minHeight = '',
29-
maxHeight = '',
27+
height = null,
28+
minHeight = null,
29+
maxHeight = null,
30+
width = null,
31+
minWidth = null,
32+
maxWidth = null,
3033
placeholder: placeholderStr = '',
31-
width = '',
32-
minWidth = '',
33-
maxWidth = '',
3434
editable = true,
3535
readOnly = false,
3636
indentWithTab: defaultIndentWithTab = true,

0 commit comments

Comments
 (0)
Please sign in to comment.