File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
packages/bento-design-system/src/SelectField Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -228,20 +228,9 @@ export function MenuList<A extends { disabled?: boolean }>(props: MenuListProps<
228228}
229229
230230export function Option < B , A extends SelectOption < B > > ( props : OptionProps < A > ) {
231- const { innerProps } = props ;
232-
231+ const { onClick, ...innerProps } = props . innerProps ;
233232 return (
234- < defaultComponents . Option
235- { ...props }
236- innerProps = { {
237- ...innerProps ,
238- // On touch devices, prevent the browser from synthesizing a follow-up click
239- // that could hit whatever is behind the menu after it closes.
240- onTouchEnd : ( e ) => {
241- e . preventDefault ( ) ;
242- } ,
243- } }
244- >
233+ < defaultComponents . Option { ...props } innerProps = { innerProps } >
245234 < ListItem
246235 { ...props . data }
247236 size = { props . selectProps . menuSize ?? "medium" }
You can’t perform that action at this time.
0 commit comments