Skip to content

CAutocomplete allowOnlyDefinedOptions #484

@Watsbob

Description

@Watsbob

if you try filter selection (example "nex") and click on option ("Next.js") the component select the first element (in this case "Angular")

also the example on the official documentation is affected https://coreui.io/react/docs/forms/autocomplete/

`import React from 'react'
import { CAutocomplete } from '@coreui/react-pro'

export const AutocompleteRestrictedSelectionExample = () => {
return (
<CAutocomplete
allowOnlyDefinedOptions
options={['Angular', 'Bootstrap', 'Next.js', 'React.js', 'Vue.js']}
placeholder="Only predefined options allowed..."
/>
)
}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions