Skip to content

Commit

Permalink
fix: shows hint content under the select input
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti committed Nov 7, 2019
1 parent b507e4d commit 812f0f7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/selectInput/components/SelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,12 @@ class SelectInput extends React.PureComponent<
/>
</span>
</span>
{hasError &&
getValidationErrors && (
<div data-cy="selectInput-hintContent">
{getHintContent}
{hasError && getValidationErrors}
</div>
)}
{Boolean(getHintContent) || hasError ? (
<div data-cy="selectInput-hintContent">
{getHintContent}
{hasError && getValidationErrors}
</div>
) : null}
</div>
)}
</FormFieldWrapper>
Expand Down

0 comments on commit 812f0f7

Please sign in to comment.