Fixed custom slug field not being disabled when selecting a short code length

This commit is contained in:
Alejandro Celaya
2020-08-30 19:50:40 +02:00
parent 8a9c694fbc
commit 84fc82b74e
2 changed files with 4 additions and 2 deletions

View File

@@ -108,7 +108,9 @@ const CreateShortUrl = (
<div className="row">
<div className="col-sm-4">
{renderOptionalInput('customSlug', 'Custom slug')}
{renderOptionalInput('customSlug', 'Custom slug', 'text', {
disabled: hasValue(shortUrlCreation.shortCodeLength),
})}
</div>
<div className="col-sm-4">
{renderOptionalInput('shortCodeLength', 'Short code length', 'number', {