ICEfaces
  1. ICEfaces
  2. ICE-9580

setFocus() not being called for submit buttons in Chrome

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P01
    • Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02, 4.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      Chrome
    • Assignee Priority:
      P2

      Description

      In Chrome, the bridge code seems not to be calling setFocus() when <input type="submit"/> and <button> elements are clicked/focused. Thus, the last element for which setFocus() was called before pressing the button (and sending a request) will have focus reapplied to it when the response comes to the client. In the particular case of ace:dateTimeEntry in the popup-mode, this will cause the calendar to pop up every time the submit button is pressed.

      For example, in Chrome, in the ace:dateTimeEntry max/min demo, when you click on the maximum date calendar, you'll see this message in the console, as expected:

      [window] persisted focus for element "form:maxIn_input"

      This means that setFocus() was invoked. However, when you click on the 'Submit Max/Min Dates' button, you WON'T see this message in Chrome:

      [window] persisted focus for element "form:submitMinMax"

      This means that setFocus() wasn't invoked for the command button in Chrome. Thus, the calendar will pop up when the response comes back. However, you will be able to see this message in FF and IE, and the calendar won't pop up every time the submit button is pressed.

        Activity

        Arturo Zambrano created issue -
        Arturo Zambrano made changes -
        Field Original Value New Value
        Link This issue blocks ICE-9558 [ ICE-9558 ]
        Arturo Zambrano made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 3.4 [ 10770 ]
        Ken Fyten made changes -
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P2 [ 10011 ]
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: