Skip to content

Commit

Permalink
fix: workaround to open input when toggle button is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoya committed Feb 14, 2020
1 parent 5826127 commit b46f91f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ export const MultiSelect = typedMemo(
inputValue: '',
isOpen: true,
};
case useCombobox.stateChangeTypes.ToggleButtonClick:
return { ...actionAndChanges.changes, isOpen: !isOpen };
default:
return actionAndChanges.changes;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/big-design/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ export const Select = typedMemo(
) {
return { ...actionAndChanges.changes, inputValue: state.inputValue };
}
case useCombobox.stateChangeTypes.ToggleButtonClick:
return { ...actionAndChanges.changes, isOpen: !isOpen };
default:
return actionAndChanges.changes;
}
Expand Down

0 comments on commit b46f91f

Please sign in to comment.