You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/05/20 22:22:00 UTC

[jira] [Commented] (ISIS-2657) If action parameter first field is an auto-complete drop-down, then it doesn't get focus.

    [ https://issues.apache.org/jira/browse/ISIS-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17348823#comment-17348823 ] 

ASF subversion and git services commented on ISIS-2657:
-------------------------------------------------------

Commit 3a2febad2361586ed7041ea29b9fac10ff72d213 in isis's branch refs/heads/master from danhaywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=3a2feba ]

ISIS-2657: sets up focus correctly if first happens to be an autocomplete


> If action parameter first field is an auto-complete drop-down, then it doesn't get focus.
> -----------------------------------------------------------------------------------------
>
>                 Key: ISIS-2657
>                 URL: https://issues.apache.org/jira/browse/ISIS-2657
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer Wicket
>            Reporter: Daniel Keir Haywood
>            Assignee: Daniel Keir Haywood
>            Priority: Minor
>             Fix For: 2.0.0-M6
>
>         Attachments: image-2021-05-11-17-44-13-862.png
>
>
> This might have been an issue for a while, or perhaps due to the bootstrap upgrade.  
> Looking at jquery.isis.wicket.viewer.js, I see:
> {code:java}
> Wicket.Event.subscribe(Isis.Topic.FOCUS_FIRST_PARAMETER, function(jqEvent, elementId) {
>     setTimeout(function() {
>         $('#'+elementId).find('.inputFormTable.parameters').find('input,textarea,select,div.cbx').filter(':visible:first').focus();
>     }, 0);
> });
>  {code}
> while inspection of what has focus suggests that instead of <select> that it should be <span class='select2'>
> !image-2021-05-11-17-44-13-862.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)