Skip to content

Commit 8e7d5b2

Browse files
fix(textarea): add reflect option to disabled and readonly props
To be consistent with ion-input and could be useful for styling purposes, since there is no "readonly" css class
1 parent 07b46d7 commit 8e7d5b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/components/textarea/textarea.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class Textarea implements ComponentInterface {
132132
/**
133133
* If `true`, the user cannot interact with the textarea.
134134
*/
135-
@Prop() disabled = false;
135+
@Prop({ reflect: true }) disabled = false;
136136

137137
/**
138138
* The fill for the item. If `"solid"` the item will have a background. If
@@ -177,7 +177,7 @@ export class Textarea implements ComponentInterface {
177177
/**
178178
* If `true`, the user cannot modify the value.
179179
*/
180-
@Prop() readonly = false;
180+
@Prop({ reflect: true }) readonly = false;
181181

182182
/**
183183
* If `true`, the user must fill in a value before submitting a form.

0 commit comments

Comments
 (0)