Skip to content

Commit 273de91

Browse files
committed
Move this._options.options.toleranceElement to this._options.toleranceElement if it exists
1 parent 81f2451 commit 273de91

File tree

2 files changed

+9
-0
lines changed
  • ts/WoltLabSuite/Core/Ui/Sortable
  • wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Sortable

2 files changed

+9
-0
lines changed

ts/WoltLabSuite/Core/Ui/Sortable/List.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ class UiSortableList {
7676
opts,
7777
) as SortableListOptions;
7878

79+
// Support legacy options pre 6.2
80+
if (typeof (this._options.options as any).toleranceElement === "string") {
81+
this._options.toleranceElement = (this._options.options as any).toleranceElement;
82+
}
83+
7984
this.#container = document.getElementById(this._options.containerId);
8085
if (!this.#container) {
8186
throw new Error(`Container '${this._options.containerId}' not found.`);

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Sortable/List.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)