@homebound/beam 2.209.2 → 2.209.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -107,7 +107,8 @@ function TextFieldBase(props) {
|
|
|
107
107
|
...(inputProps.disabled ? fieldStyles.disabled : {}),
|
|
108
108
|
...(showFocus ? fieldStyles.focus : {}),
|
|
109
109
|
...(showHover ? fieldStyles.hover : {}),
|
|
110
|
-
|
|
110
|
+
// Only show error styles if the field is not disabled, following the pattern that the error message is also hidden
|
|
111
|
+
...(errorMsg && !inputProps.disabled ? fieldStyles.error : {}),
|
|
111
112
|
...Css_1.Css.if(multiline).aifs.px0.mhPx(textAreaMinHeight).$,
|
|
112
113
|
} }, hoverProps, { ref: inputWrapRef }, { children: [!multiline && inlineLabel && label && !hideLabel && ((0, jsx_runtime_1.jsx)(Label_1.InlineLabel, Object.assign({ labelProps: labelProps, label: label }, tid.label), void 0)), !multiline && startAdornment && (0, jsx_runtime_1.jsx)("span", Object.assign({ css: Css_1.Css.df.aic.fs0.br4.pr1.$ }, { children: startAdornment }), void 0), (0, jsx_runtime_1.jsx)(ElementType, Object.assign({}, (0, react_aria_1.mergeProps)(inputProps, { onBlur, onFocus: onFocusChained, onChange: onDomChange }, { "aria-invalid": Boolean(errorMsg), ...(hideLabel ? { "aria-label": label } : {}) }), (errorMsg ? { "aria-errormessage": errorMessageId } : {}), { ref: fieldRef, rows: multiline ? 1 : undefined, css: {
|
|
113
114
|
...fieldStyles.input,
|