If help text or description set on the autocomplete field then this breaks the js

Created on 30 October 2024, about 2 months ago

Problem/Motivation

If help text or description set on the autocomplete field then we get this error:

Uncaught TypeError: Cannot read properties of undefined (reading 'trim')

Which seems to be due to an expectation in the module that the next element after the div with the autocomplete-deluxe-container class to be the div with the autocomplete-deluxe-value-container class. But if we add some help text it is in fact the help text that is shown after the autocomplete-deluxe-container.

I have updated the js to explicitly check for the autocomplete-deluxe-value-container and also hide the second repeated description that is shown if it exists.

🐛 Bug report
Status

Active

Version

2.1

Component

Code (miscellaneous)

Created by

🇬🇧United Kingdom samberry

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024