From 8a5633f60e32ae100deb4e5ae031d381c1d1986e Mon Sep 17 00:00:00 2001 From: zombieFox Date: Thu, 21 Nov 2019 18:29:58 +0000 Subject: [PATCH] [bug] fix link postion select when adding via empty group --- src/js/link.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/link.js b/src/js/link.js index 64d7fbbe..8f347161 100644 --- a/src/js/link.js +++ b/src/js/link.js @@ -1375,7 +1375,13 @@ var link = (function() { }, selectGroup: function(groupIndex) { stagedLink.position.destination.group = groupIndex; + stagedLink.position.destination.item = 0; helper.e(".link-form-select-group").selectedIndex = stagedLink.position.destination.group; + var linkFormPosition = helper.e(".link-form-position"); + while (linkFormPosition.lastChild) { + linkFormPosition.removeChild(linkFormPosition.lastChild); + }; + linkFormPosition.appendChild(helper.node("option:" + helper.ordinalNumber(1))); } }, group: {