Skip to content

Commit

Permalink
Update modules/react/select/stories/examples/WithIcons.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: James Fan <[email protected]>
  • Loading branch information
mannycarrera4 and jamesfan authored Sep 21, 2023
1 parent 9456afb commit a9e2a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/react/select/stories/examples/WithIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export const WithIcons = () => {
const model = useSelectModel({
items: customOptions,
});
const currentItem = model.navigation.getItem(model.state.selectedIds[0], model);
const selectedItem = model.navigation.getItem(model.state.selectedIds[0], model);
return (
<Flex>
<Select model={model}>
<FormField label="Contact" inputId="with-icons-select">
<Select.Input
width="300px"
inputStartIcon={currentItem.value.icon}
inputStartIcon={selectedItem.value.icon}
id="with-icons-select"
/>
<Select.Popper>
Expand Down

0 comments on commit a9e2a23

Please sign in to comment.