Skip to content

Commit 9ad3b02

Browse files
jeessy2afc163
authored andcommitted
Fix: Add missing title (#433)
1 parent 7b3a8cb commit 9ad3b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/OptionList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const OptionList: React.RefForwardingComponent<
243243
);
244244
}
245245

246-
const { disabled, value, children } = data as OptionData;
246+
const { disabled, value, title, children } = data as OptionData;
247247

248248
// Option
249249
const selected = values.has(value);
@@ -265,6 +265,7 @@ const OptionList: React.RefForwardingComponent<
265265
<div
266266
aria-selected={selected}
267267
className={optionClassName}
268+
title={title}
268269
onMouseMove={() => {
269270
if (activeIndex === itemIndex || disabled) {
270271
return;

0 commit comments

Comments
 (0)