Topic: CHIPS - unable to use with autocomplete
meesha81
priority
asked 2 days ago
Expected behavior Ability to stop autocreation of chip on input blur, because when input is used for autocomplete, you don't want to create from text. New item can be returned via autocomplete, so it would be nice to place chips only via API method = block automatic chips creation from text input which can be used for autocomplete.
Actual behavior You can use autocomplet on input, it is fine, but when you click/select item from autocomplete, you fire blur on input with search input for autocomplete and chip from search text is automatically created.
With current possibilities it is not possible to use CHIPS with Autocomplete because of automatic chip creation from search text.
Kamila Pieńkowska
staff
answered 1 day ago
The Chips
and Autocomplete
components are designed to work independently. Their integration hasn’t been part of the intended use case, so combining them directly leads to unexpected behaviour like the one you described.
Creating chips on blur or Escape is a deliberate feature of the component — disabling it would go against its intended behavior.
meesha81 priority commented 1 day ago
Okey, but usage of the chips are very poor, because you want to do some typeahead. So I have to create my own chips, because they are not prepared for “poor” usages by js commands as designed element… Okey, I understand, I can do it myself. Several issues with high value were also ignored…
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 9.1.0
- Device: PC
- Browser: Chrome
- OS: Win11
- Provided sample code: No
- Provided link: No