From 67f48d5e603ebb534321d1eee4a3d401a0b63a18 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 22 Jul 2018 16:36:50 +0300 Subject: [PATCH] make a copy of the applies-to template fixes #442 --- edit/applies-to-line-widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/applies-to-line-widget.js b/edit/applies-to-line-widget.js index aad47296..fe995be7 100644 --- a/edit/applies-to-line-widget.js +++ b/edit/applies-to-line-widget.js @@ -29,7 +29,7 @@ function createAppliesToLineWidget(cm) { $create('label', t('appliesLabel')), $create('ul.applies-to-list'), ]), - listItem: template.appliesTo, + listItem: template.appliesTo.cloneNode(true), appliesToEverything: $create('li.applies-to-everything', t('appliesToEverything')), };