fix(search): 🐛 label can sometimes contain HTML

This commit is contained in:
alistair3149 2024-05-22 00:58:13 -04:00 committed by GitHub
parent d6bfce15c5
commit b946056c13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,7 +123,7 @@ function htmlHelper() {
item.querySelector( '.citizen-typeahead__title' ).innerHTML = data.title;
}
if ( data.label ) {
item.querySelector( '.citizen-typeahead__label' ).textContent = data.label;
item.querySelector( '.citizen-typeahead__label' ).innerHTML = data.label;
}
if ( data.desc ) {
item.querySelector( '.citizen-typeahead__description' ).textContent = data.desc;