@@ -9,7 +9,7 @@ export enum TextAreResizeOrientation {
99 horizontal = 'horizontal' ,
1010 vertical = 'vertical' ,
1111 both = 'both' ,
12- disabled = 'disabled '
12+ none = 'none '
1313}
1414
1515export enum TextAreaReadOnlyVariant {
@@ -38,7 +38,7 @@ export interface TextAreaProps extends Omit<HTMLProps<HTMLTextAreaElement>, 'onC
3838 /** A callback for when the text area value changes. */
3939 onChange ?: ( event : React . ChangeEvent < HTMLTextAreaElement > , value : string ) => void ;
4040 /** Sets the orientation to limit the resize to */
41- resizeOrientation ?: 'horizontal' | 'vertical' | 'both' | 'disabled ' ;
41+ resizeOrientation ?: 'horizontal' | 'vertical' | 'both' | 'none ' ;
4242 /** Custom flag to show that the text area requires an associated id or aria-label. */
4343 'aria-label' ?: string ;
4444 /** @hide A reference object to attach to the text area. */
@@ -120,7 +120,7 @@ class TextAreaBase extends React.Component<TextAreaProps> {
120120 ...props
121121 } = this . props ;
122122 const orientation =
123- resizeOrientation !== 'disabled '
123+ resizeOrientation !== 'none '
124124 ? ( `resize${ capitalize ( resizeOrientation ) } ` as 'resizeVertical' | 'resizeHorizontal' | 'resizeBoth' )
125125 : undefined ;
126126 const hasStatusIcon = [ 'success' , 'error' , 'warning' ] . includes ( validated ) ;
@@ -131,7 +131,7 @@ class TextAreaBase extends React.Component<TextAreaProps> {
131131 styles . formControl ,
132132 readOnlyVariant && styles . modifiers . readonly ,
133133 readOnlyVariant === 'plain' && styles . modifiers . plain ,
134- resizeOrientation !== 'disabled ' && styles . modifiers [ orientation ] ,
134+ resizeOrientation !== 'none ' && styles . modifiers [ orientation ] ,
135135 isDisabled && styles . modifiers . disabled ,
136136 hasStatusIcon && styles . modifiers [ validated as 'success' | 'warning' | 'error' ] ,
137137 className
0 commit comments