Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-8550Uif Components (Kitchen Sink) Jump to and Focus links not working
      KULRICE-13467Fill AFT Gap: KRAD Library - Focus and Jump To
      KULRICE-7890Links for errors do not jump correctly to the fields in question, but rather jitter and jump to the top of the page
      KULRICE-7773Validation links no longer jump the user to the appropriate content
      KULRICE-9697Focus LINE_FIRST is not working
      KULRICE-11950Prevent resizing jump on lightbox
      KULRICE-12578Weird jump behavior on Krad sample app when clicking an item
      KULRICE-6563Add the standard "jump to main content" link
      KULRICE-10811Lookup Gap Analysis Focus Group
      KULRICE-10057Page jumps to top then to first message when messages are returned from the server
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      UIF Component
    • Sprint:
      Core 2.5.0-m3 Sprint 2, Core 2.5.0-m4 Sprint 1, Core 2.5.0-m4 Sprint 2
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Focus on and jump to is not working correctly now, in addition, there are some config improvements we need to make.

      First if you set a focusId for an action component, focus is not set when a refresh occurs. I believe this is due to how the performFocusAndJumpTo method is being called from the page load event:

      <@krad.script value="jQuery(document).on(kradVariables.PAGE_LOAD_EVENT, function(){
      performFocusAndJumpTo($

      {KualiForm.view.currentPage.autoFocus?string}

      , true, true, '$

      {KualiForm.focusId!}

      ',
      '$

      {KualiForm.jumpToId!}

      ', '$

      {KualiForm.jumpToName!}

      ');
      });" component=KualiForm.view.currentPage/>

      Other problems include:

      1) Setting focus id could override focus set when there are errors

      I purpose we modify the implementation as follows:

      For view and page refreshes, add the focusId and jumpTo as data attribute of the page. Note this can be done in PageGroup and should only be done if there is a value in the form property. Also if autoFocus is true, add a data attribute to the page.

      For component refreshes, add focusId and jumpTo to the component wrapper div (look at uifRender.ftl).

      Another thing I have noticed. When the default jumpTo is the action, the scroll puts the action at the top of the viewport. It would be better if we can position the action at the bottom of the viewport I think.

      Create a new method for handling focus and jump. This should encapsulate all logic (of course can use helper methods), but should have logic for validation focusing and other cases. Invoke this method from document ready, page setup, and update component, passing in the data attributes (if found).

      Create demos for this functionality in General Features. Should test the various focus setting and jump settings.

        Activity

          People

          • Assignee:
            Kristina Taylor (Inactive)
            Reporter:
            Jerry Neal (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 3 days
              3d
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 days Time Not Required
              2d

                Agile

                  Structure Helper Panel