Skip to content

Commit e0322ca

Browse files
committed
Fix comment query
1 parent 02b09d1 commit e0322ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example/MultiSelect/MultiSelect.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const items: Item[] = [
5050

5151
export const Dropdown: React.FC<Props> = ({ onSelect, values }) => {
5252
const [inputValue, setInputValue] = useState<string>('');
53-
// const [selectedOptions, setSelected] = useState<Item[]>(values);
5453
const [isFocused, setFocused] = useState<Boolean>(false);
5554

5655
const handleSelect = (item: Item) => {
@@ -143,7 +142,7 @@ export const Dropdown: React.FC<Props> = ({ onSelect, values }) => {
143142
autoComplete="off"
144143
/>
145144

146-
{isOpen && (
145+
{(isOpen || isFocused) && (
147146
<ul className="menu" {...(getMenuProps() as any)}>
148147
{options.length === 0 ? (
149148
<li>No data</li>

0 commit comments

Comments
 (0)