opts,
) as SortableListOptions;
+ // Support legacy options pre 6.2
+ if (typeof (this._options.options as any).toleranceElement === "string") {
+ this._options.toleranceElement = (this._options.options as any).toleranceElement;
+ }
+
this.#container = document.getElementById(this._options.containerId);
if (!this.#container) {
throw new Error(`Container '${this._options.containerId}' not found.`);
isSimpleSorting: false,
additionalParameters: {},
}, opts);
+ // Support legacy options pre 6.2
+ if (typeof this._options.options.toleranceElement === "string") {
+ this._options.toleranceElement = this._options.options.toleranceElement;
+ }
this.#container = document.getElementById(this._options.containerId);
if (!this.#container) {
throw new Error(`Container '${this._options.containerId}' not found.`);