Skip to content

Commit

Permalink
fix(community-input-group): update input id
Browse files Browse the repository at this point in the history
  • Loading branch information
zyl-edison-telus authored and theetrain committed Apr 13, 2020
1 parent 7faa834 commit 3890b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/InputGroup/InputGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const InputGroup = ({
}) => {
const inputRef = createRef()
const [inputValue, setInputValue] = useState('')
const inputId = useMemo(() => (label ? uniqueId(label) : id), [label, id])
const inputId = useMemo(() => id || (label && uniqueId(label)) || undefined, [label, id])

useEffect(() => {
if (defaultValue) {
Expand Down

0 comments on commit 3890b17

Please sign in to comment.