Skip to content

Commit

Permalink
docs: fix indentWithTab prop description (#483)
Browse files Browse the repository at this point in the history
* 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`).
  • Loading branch information
lloydlobo committed Apr 2, 2023
1 parent 20cce8e commit ff629d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/README.md
Expand Up @@ -397,7 +397,8 @@ export interface ReactCodeMirrorProps
*/
readOnly?: boolean;
/**
* Whether to optional basicSetup by default
* 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`).
* @default true
*/
indentWithTab?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion core/src/index.tsx
Expand Up @@ -45,7 +45,8 @@ export interface ReactCodeMirrorProps
*/
readOnly?: boolean;
/**
* Whether to optional basicSetup by default
* 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`).
* @default true
*/
indentWithTab?: boolean;
Expand Down

0 comments on commit ff629d7

Please sign in to comment.