Skip to content

Commit

Permalink
Merge pull request #617 from kinvolk/fix-package-picking
Browse files Browse the repository at this point in the history
frontend: Fix selecting a package for a channel
  • Loading branch information
joaquimrocha authored Aug 8, 2022
2 parents 1f59cde + 48a1b87 commit ffa7d16
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ export default function AutoCompletePicker(props: AutoCompletePickerProps) {
const classes = useStyles();

function onInputChange(event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) {
setSelectedValue(event.target.value);
props.onValueChanged(event.target.value);
}

Expand Down Expand Up @@ -234,6 +233,8 @@ export default function AutoCompletePicker(props: AutoCompletePickerProps) {
inputValue,
selectedItem,
}) => {
setSelectedValue(selectedItem);

const { onBlur, onFocus, ...inputProps } = getInputProps();

return (
Expand Down

0 comments on commit ffa7d16

Please sign in to comment.