Skip to content

Commit ff629d7

Browse files
authoredApr 2, 2023
docs: fix indentWithTab prop description (#483)
* docs: fix indentWithTab prop description The description for the `indentWithTab` prop in the `ReactCodeMirrorProps` interface was incorrect, as it duplicated the description of the `basicSetup` prop * docs: fix indentWithTab prop description This commit updates the indentWithTab prop description in the ReactCodeMirrorProps interface, reflecting the changes made in `core/index.tsx`. The updated description correctly explains that the prop controls whether pressing the `Tab` key inserts a tab character and indents the text (`true`) or behaves according to the browser's default behavior (`false`).
1 parent 20cce8e commit ff629d7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎core/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ export interface ReactCodeMirrorProps
397397
*/
398398
readOnly?: boolean;
399399
/**
400-
* Whether to optional basicSetup by default
400+
* Controls whether pressing the `Tab` key inserts a tab character and indents the text (`true`)
401+
* or behaves according to the browser's default behavior (`false`).
401402
* @default true
402403
*/
403404
indentWithTab?: boolean;

‎core/src/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export interface ReactCodeMirrorProps
4545
*/
4646
readOnly?: boolean;
4747
/**
48-
* Whether to optional basicSetup by default
48+
* Controls whether pressing the `Tab` key inserts a tab character and indents the text (`true`)
49+
* or behaves according to the browser's default behavior (`false`).
4950
* @default true
5051
*/
5152
indentWithTab?: boolean;

0 commit comments

Comments
 (0)
Please sign in to comment.