We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e237bd commit 66fe197Copy full SHA for 66fe197
src/OptionList.tsx
@@ -205,10 +205,11 @@ const OptionList: React.RefForwardingComponent<
205
206
// >>> Select item
207
case KeyCode.ENTER: {
208
- if (activeEntity?.data?.selectable !== false) {
+ const { selectable, value } = activeEntity?.data || {};
209
+ if (selectable !== false) {
210
onInternalSelect(null, {
211
node: { key: activeKey },
- selected: !checkedKeys.includes(activeEntity.data.value),
212
+ selected: !checkedKeys.includes(value),
213
});
214
}
215
break;
0 commit comments