This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/master by this push:
     new 97160725ac CAUSEWAY-3393: fixes missing focus on first param in sidebar
97160725ac is described below

commit 97160725acde88e5678933ebb132d9a21c56d7e3
Author: andi-huber <[email protected]>
AuthorDate: Thu Apr 13 08:21:01 2023 +0200

    CAUSEWAY-3393: fixes missing focus on first param in sidebar
---
 .../viewer/wicket/ui/components/actionpromptsb/ActionPromptSidebar.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/actionpromptsb/ActionPromptSidebar.java
 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/actionpromptsb/ActionPromptSidebar.java
index 3503f3f8e6..3cfac1e96d 100644
--- 
a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/actionpromptsb/ActionPromptSidebar.java
+++ 
b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/actionpromptsb/ActionPromptSidebar.java
@@ -25,6 +25,7 @@ import org.apache.wicket.markup.html.panel.GenericPanel;
 
 import 
org.apache.causeway.viewer.wicket.model.models.ActionPromptWithExtraContent;
 import org.apache.causeway.viewer.wicket.ui.util.Wkt;
+import org.apache.causeway.viewer.wicket.ui.util.Wkt.EventTopic;
 
 public class ActionPromptSidebar
 extends GenericPanel<Void>
@@ -90,6 +91,7 @@ implements ActionPromptWithExtraContent {
         setVisible(true);
         show(target);
         target.add(this);
+        Wkt.javaScriptAdd(target, EventTopic.FOCUS_FIRST_PARAMETER, 
getMarkupId());
     }
 
     @Override

Reply via email to