Skip to content

Commit

Permalink
chore: className 따로 가져오기
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Sep 4, 2024
1 parent 40488b5 commit 6da30ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wow-ui/src/components/DropDown/DropDownOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface DropDownOptionProps {
}

const DropDownOption = forwardRef<HTMLLIElement, DropDownOptionProps>(
function Option({ value, onClick, text, ...rest }, ref) {
function Option({ value, onClick, text, className, ...rest }, ref) {
const { focusedValue, selectedValue, handleSelect, dropdownId } =
useDropDownContext();
const isSelected = selectedValue === value;
Expand Down Expand Up @@ -60,7 +60,7 @@ const DropDownOption = forwardRef<HTMLLIElement, DropDownOptionProps>(
optionStyle({
type: isSelected ? "selected" : isFocused ? "focused" : "default",
}),
rest.className
className
)}
onClick={() => {
handleOptionClick(value, onClick);
Expand Down

0 comments on commit 6da30ed

Please sign in to comment.