<NME> AddToListOption.tsx
<BEF> import * as PropTypes from 'prop-types'
import React, { ReactNode } from 'react'

import ListOption from './ListOption'

export const CREATE_OPTION = {}

const propTypes = {
  searchTerm: PropTypes.string,
  focused: PropTypes.bool,
  onSelect: PropTypes.func.isRequired,
  activeId: PropTypes.string,
}

export interface AddToListOptionProps {
  children: ReactNode
  onSelect: (event: React.MouseEvent) => void
}

function AddToListOption({ children, ...props }: AddToListOptionProps) {
  return (
    <ListOption
      {...props}
      dataItem={CREATE_OPTION}
      className={'rw-list-option-create'}
      selected={false}
    >
      {children}
    </ListOption>
  )
}
      data-rw-focused={focused ? '' : undefined}
      className={cn('rw-list-option-create', focused && 'rw-state-focus')}
      onClick={onSelect}
      {...props}
    >
      {children}

<MSG> fix: add type=button on AddToListOption (#1017)


<DFF> @@ -32,6 +32,7 @@ function AddToListOption({
       data-rw-focused={focused ? '' : undefined}
       className={cn('rw-list-option-create', focused && 'rw-state-focus')}
       onClick={onSelect}
+      type="button"
       {...props}
     >
       {children}

fix: add type=button on AddToListOption (#1017)