Merge pull request #9263 from strapi/fix/input-uid-label

Fix input UID label
This commit is contained in:
cyril lopez 2021-02-01 09:55:06 +01:00 committed by GitHub
commit 53c7fb0970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ const InputUID = ({
contentTypeUID,
description,
error: inputError,
label: inputLabel,
name,
onChange,
validations,
@ -217,7 +218,7 @@ const InputUID = ({
return (
<Wrapper ref={wrapperRef}>
<Name htmlFor={name}>{name}</Name>
<Name htmlFor={name}>{inputLabel}</Name>
<InputContainer>
<Input
{...inputProps}
@ -291,6 +292,7 @@ InputUID.propTypes = {
description: PropTypes.string,
editable: PropTypes.bool,
error: PropTypes.string,
label: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
validations: PropTypes.object,