We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ea63e commit 3821ffcCopy full SHA for 3821ffc
src/select-panel/default-item.tsx
@@ -15,7 +15,7 @@ const DefaultItemRenderer = ({
15
onClick,
16
disabled,
17
}: IDefaultItemRendererProps) => (
18
- <div className={`item-renderer ${disabled && "disabled"}`}>
+ <div className={`item-renderer ${disabled ? "disabled" : ""}`}>
19
<input
20
type="checkbox"
21
onChange={onClick}
src/select-panel/select-item.tsx
@@ -49,7 +49,7 @@ const SelectItem = ({
49
50
return (
51
<label
52
- className={`select-item ${checked && "selected"}`}
+ className={`select-item ${checked ? "selected" : ""}`}
53
role="option"
54
aria-selected={checked}
55
tabIndex={tabIndex}
0 commit comments