From bcd4d88f8112304ee87d295af14ac1901f026e09 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 1 Sep 2021 17:25:16 +0200 Subject: [PATCH] Fix reordering questions in forms --- www/form/inner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/form/inner.js b/www/form/inner.js index 85c3c0bfd..e1e719534 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -2987,6 +2987,7 @@ define([ updateAddInline(); if (editable) { + if (APP.mainSortable) { APP.mainSortable.destroy(); } APP.mainSortable = Sortable.create($container[0], { direction: "vertical", filter: "input, button, .CodeMirror, .cp-form-type-sort, .cp-form-block-type.editable",