mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-22 00:09:47 +01:00
Fix endless loop on render Select component
This commit is contained in:
@@ -91,7 +91,7 @@ const InnerSelect: FC<FieldProps<BaseProps, HTMLSelectElement, string>> = ({
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [field, name, props, value]);
|
||||
}, [field, value, name, props.onChange, props.innerRef]);
|
||||
|
||||
const loadingClass = loading ? "is-loading" : "";
|
||||
|
||||
@@ -109,7 +109,7 @@ const InnerSelect: FC<FieldProps<BaseProps, HTMLSelectElement, string>> = ({
|
||||
disabled={disabled}
|
||||
{...createAttributesForTesting(testId)}
|
||||
>
|
||||
{props.options.map(opt => {
|
||||
{props.options.map((opt) => {
|
||||
return (
|
||||
<option value={opt.value} key={"KEY_" + opt.value}>
|
||||
{opt.label}
|
||||
|
||||
Reference in New Issue
Block a user