We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca0f05e commit 8704df9Copy full SHA for 8704df9
packages/bento-design-system/src/SelectField/components.tsx
@@ -228,9 +228,17 @@ export function MenuList<A extends { disabled?: boolean }>(props: MenuListProps<
228
}
229
230
export function Option<B, A extends SelectOption<B>>(props: OptionProps<A>) {
231
- const { onClick, ...innerProps } = props.innerProps;
232
return (
233
- <defaultComponents.Option {...props} innerProps={innerProps}>
+ <defaultComponents.Option
+ {...props}
234
+ innerProps={{
235
+ ...props.innerProps,
236
+ onClick: (e) => {
237
+ e.stopPropagation();
238
+ e.preventDefault();
239
+ },
240
+ }}
241
+ >
242
<ListItem
243
{...props.data}
244
size={props.selectProps.menuSize ?? "medium"}
0 commit comments