JS error - Uncaught Sortable: `el` must be an HTMLElement, not [object Undefined]

Created on 3 August 2023, about 1 year ago
Updated 16 July 2024, 3 months ago

When we use the select2 element as a facet widget then we get the following error.

JS error - Uncaught Sortable: `el` must be an HTMLElement, not [object Undefined]

This was caused by the following code part.

var $list = $select.next('.select2-container').find('ul.select2-selection__rendered');

Where the list length is equal to 0.

I propose that we add a extra check to see if the list exists.

🐛 Bug report
Status

Needs review

Version

1.15

Component

Render element

Created by

🇧🇪Belgium p-neyens

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

Comments & Activities

Production build 0.71.5 2024