Skip to content

Commit 98f2064

Browse files
committed
update after review
1 parent ff8961f commit 98f2064

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

components/dash-core-components/src/fragments/Dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const Dropdown = (props: DropdownProps) => {
233233

234234
setDisplayOptions(sortedOptions);
235235
}
236-
}, [filteredOptions, isOpen, sanitizedValues]);
236+
}, [filteredOptions, isOpen]);
237237

238238
// Focus first selected item or search input when dropdown opens
239239
useEffect(() => {

components/dash-core-components/src/utils/optionRendering.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const OptionLabel: React.FC<OptionLabelProps> = ({
3737
<ExternalWrapper
3838
key={i}
3939
component={label}
40-
componentPath={[...ctx.componentPath, index, i]}
40+
componentPath={[...ctx.componentPath, String(value), i]}
4141
/>
4242
))}
4343
</>

0 commit comments

Comments
 (0)