Skip to content

Commit

Permalink
refactor(combobox) remove clear icon from DOM if not hovered
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Sep 27, 2023
1 parent 89c5298 commit dfc91d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/form/ComboBox/ComboBoxInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ const StyledButton = styled(Button)`
&.MuiAutocomplete-clearIndicatorDirty {
display: inherit;
visibility: hidden;
display: none;
}
}
`

const StyledTextInput = styled(TextInput)`
&:hover {
.MuiAutocomplete-clearIndicatorDirty {
visibility: visible;
display: flex;
}
}
`
Expand Down

0 comments on commit dfc91d4

Please sign in to comment.