Skip to content

Commit 3350b1f

Browse files
committed
fix: old method will pass boolean instead of function
1 parent 7ed0517 commit 3350b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dropdown/Dropdown.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const factory = (Input) => {
180180
<li
181181
key={idx}
182182
className={className}
183-
onClick={!item.disabled && this.handleSelect.bind(this, item[valueKey])}
183+
onClick={!item.disabled ? this.handleSelect.bind(this, item[valueKey]) : undefined}
184184
>
185185
{this.props.template ? this.props.template(item) : item[labelKey]}
186186
</li>

0 commit comments

Comments
 (0)