Skip to content

Commit f3bb401

Browse files
author
John P. rouillard
committed
issue #68 - Make accumulator into a form so hitting return in preview submits.
1 parent 9485206 commit f3bb401

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

html/classhelper.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,10 @@ class ClassHelper extends HTMLElement {
735735
const fragment = document.createDocumentFragment();
736736
const container = document.createElement("div");
737737
container.id = "popup-control";
738-
container.classList.add("popup-control");
738+
739+
const form = document.createElement("form")
740+
form.id = "accumulator-form"
741+
form.classList.add("popup-control");
739742

740743
const preview = document.createElement("input");
741744
preview.id = "popup-preview";
@@ -768,7 +771,8 @@ class ClassHelper extends HTMLElement {
768771
}))
769772
})
770773

771-
container.append(preview, apply, cancel);
774+
form.append(preview, apply, cancel);
775+
container.append(form)
772776
fragment.appendChild(container);
773777

774778
return fragment;

0 commit comments

Comments
 (0)