Skip to content

Commit 07a23a1

Browse files
committed
add changelog and JSDocs
1 parent 598b33d commit 07a23a1

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- Changed `EuiFieldText` styles to prioritize `disabled` styling over `readonly`.
2+
3+
**Bug fixes**
4+
5+
- Fixed `disabled` behavior of `EuiFieldText` to prevent input changes.
6+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- Added suppport for `titleColor` variant `warning` on `EuiStat`
1+
- Added support for `titleColor` variant `warning` on `EuiStat`
22

packages/eui/src/components/form/field_text/field_text.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export type EuiFieldTextProps = InputHTMLAttributes<HTMLInputElement> &
3131
*/
3232
fullWidth?: boolean;
3333
isLoading?: boolean;
34+
/**
35+
* Prevents user from changing input.
36+
*
37+
* Defaults to the value of `disabled` unless explicity defined otherwise.
38+
*/
3439
readOnly?: boolean;
3540
inputRef?: Ref<HTMLInputElement>;
3641

0 commit comments

Comments
 (0)