From f91e32bf43446061baccaedbb8db4126dbe62ced Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 17 Mar 2023 11:02:25 +0100 Subject: [PATCH] when execution confirmed scroll to executionform --- ccp/js/executionformcontroller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index ca9658c..01975a7 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -33,7 +33,8 @@ class CCPExecutionForm extends HTMLElement{ connectNewExecutionRequest(){ document.addEventListener("newexecutionrequest", ev=>{ if(window.confirm("Confirm overwrite of execution form?")){ - this.setAttribute("method", ev.detail) + this.setAttribute("method", ev.detail) + this.parentElement.scrollIntoViewIfNeeded() } }) }