Skip to content

Commit 027fbe7

Browse files
committed
chore(code-editor): reflect the primitive props
1 parent e4d701c commit 027fbe7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/components/code-editor/code-editor.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,37 +52,37 @@ export class CodeEditor {
5252
* Use `readonly` when the editor is only there to present the data it holds,
5353
* and will not become possible for the current user to edit.
5454
*/
55-
@Prop()
56-
public readonly: boolean = false;
55+
@Prop({ reflect: true })
56+
public readonly = false;
5757

5858
/**
5959
* Displays line numbers in the editor
6060
*/
61-
@Prop()
62-
public lineNumbers: boolean = false;
61+
@Prop({ reflect: true })
62+
public lineNumbers = false;
6363

6464
/**
6565
* Wraps long lines instead of showing horizontal scrollbar
6666
*/
67-
@Prop()
68-
public lineWrapping: boolean = false;
67+
@Prop({ reflect: true })
68+
public lineWrapping = false;
6969

7070
/**
7171
* Allows the user to fold code
7272
*/
73-
@Prop()
74-
public fold: boolean = false;
73+
@Prop({ reflect: true })
74+
public fold = false;
7575

7676
/**
7777
* Enables linting of JSON content
7878
*/
79-
@Prop()
80-
public lint: boolean = false;
79+
@Prop({ reflect: true })
80+
public lint = false;
8181

8282
/**
8383
* Select color scheme for the editor
8484
*/
85-
@Prop()
85+
@Prop({ reflect: true })
8686
public colorScheme: ColorScheme = 'auto';
8787

8888
/**

0 commit comments

Comments
 (0)