Skip to content

Commit 500bbd8

Browse files
committed
[attribute] keyword options were not selectable
1 parent f65a64a commit 500bbd8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/gephi-lite/src/components/data/Attribute.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,15 @@ export const AttributeEditors: {
244244
(props: OptionProps<BaseOption, true>) => {
245245
const Option = components.Option<BaseOption, true, GroupBase<BaseOption>>;
246246
return (
247-
<Option {...props}>
248-
<RenderKeywords value={[props.data.value]} separator={field.separator} />
249-
</Option>
247+
<div
248+
onClick={(e) => {
249+
e.stopPropagation();
250+
}}
251+
>
252+
<Option {...props}>
253+
<RenderKeywords value={[props.data.value]} separator={field.separator} />
254+
</Option>
255+
</div>
250256
);
251257
},
252258
[field.separator],

0 commit comments

Comments
 (0)