Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with suggestion-box using autocomplete_add_contact: true && xhr_user_search_url #3290

Open
sergiogonzalez2 opened this issue Nov 23, 2023 · 5 comments

Comments

@sergiogonzalez2
Copy link

ERROR with configuration autocomplete_add_contact: true && xhr_user_search_url . When I try to add a contact in my chat using the autocomplete config, suggestions that matches with the query introduced are showed, so my endpoint works (also without the autocomplete, contact matched is added, if only one matches). The problem come when I select one of the suggestions that matches in the suggestion-box, in that moment I have the next error and can´t fill the input w that value:

Uncaught TypeError: Cannot read properties of undefined (reading 'value')
at AutoComplete.insertValue (converse.js:51317:1)
at AutoComplete.select (converse.js:51372:1)
at AutoComplete.onMouseDown (converse.js:51397:1)

I think that with the last version of converse, this bug will be fixed, but can´t change mi version because of incompatibility with my Angular version. I´m now comparing converse.js file in the last version with mine, but autocomplete functions are so similar, I can´t see where the error is. My petition is to know exactly what I must change to fix it, if it is fixed.

I attach a screenshot:
Captura de pantalla 2023-11-23 180013

Environment :

  • Desktop
  • Browser Chroome or Edge
  • Converse.js version 10.0.0
@sergiogonzalez2 sergiogonzalez2 changed the title Error using with suggestion-box using autocomplete_add_contact: true && xhr_user_search_url Error with suggestion-box using autocomplete_add_contact: true && xhr_user_search_url Nov 23, 2023
@sergiogonzalez2
Copy link
Author

@jcbrand

@sergiogonzalez2
Copy link
Author

@licaon-kter

@licaon-kter
Copy link
Contributor

@sergiogonzalez2

@sergiogonzalez2
Copy link
Author

help?

@licaon-kter
Copy link
Contributor

I'm not a dev... sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants