Skip to content

Commit b05ebc5

Browse files
Merged in bcal-167-disabled-fields (pull request #6022)
BCAL-167: Only checking offlineable selects if field originally required
2 parents ee49503 + 24f3856 commit b05ebc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/javascript/components/record-form/form/field-types/select-field-container.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ const SelectFieldContainer = ({
110110
);
111111
};
112112

113-
const apiSelectOptionsOffline = !isFieldRequired(online, option, required) && ASYNC_OPTIONS.includes(option);
113+
const apiSelectOptionsOffline =
114+
!isFieldRequired(online, option, required) && ASYNC_OPTIONS.includes(option) && required;
114115

115116
const inputHelperText = () => {
116117
if (error && touched) {

0 commit comments

Comments
 (0)