Skip to content

Autocomplete: allow developer to prompt user with a custom message on cursor focus on the input field #330

@brightpixels

Description

@brightpixels

Is your feature request related to a problem? Please describe.
We are looking for a feature to allow the developer to prompt the user on cursor focus on the input field

We have 2 use cases:

  • User needs to be prompted to enter a minimum characters before the list is displayed in the autocomplete (js only, see screenshot)
    PixelSnap 2022-07-25 at 10 42 47

  • User has to complete another dependent field before they can search in the autocomplete
    PixelSnap 2022-07-25 at 10 05 46

Describe the solution you'd like
I suggest the following additional props to enable above feature request

  • minChars
  • minCharsMessage
  • promptMessage
  • promptCondition

Please follow the following steps to create your branch:

git checkout release/0.5
git pull
git checkout -b 'feature/autocomplete-cursor'

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions