Skip to content

Commit

Permalink
[Product Block Editor]: disable TextArea RichText instance according …
Browse files Browse the repository at this point in the history
…to `disabled` attribute value (#46089)

* get ready to disable text-area block

* changelog

* update doc
  • Loading branch information
retrofox authored and senadir committed Apr 4, 2024
1 parent ad27b98 commit 09a9a90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: add

[Product Block Editor]: disable TextArea RichText instance according to `disabled` attribute value
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ Help text that appears below the field, providing additional guidance to the use

Indicates that the field is required.

### disabled

- **Type:** `Boolean`
- **Required:** `No`

Indicates that the field is not editable.

### tooltip

- **Type:** `String`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function TextAreaBlockEdit( {
required,
note,
tooltip,
disabled,
disabled = false,
align,
allowedFormats,
direction,
Expand Down Expand Up @@ -146,7 +146,7 @@ export function TextAreaBlockEdit( {
placeholder={ placeholder }
required={ required }
aria-required={ required }
disabled={ disabled }
readOnly={ disabled }
onBlur={ hideToolbar }
/>
) }
Expand Down

0 comments on commit 09a9a90

Please sign in to comment.