Uploaded image for project: 'Social Justice Repair Kit'
  1. Social Justice Repair Kit
  2. SJRK-422

Clicking on a newly added block shifts focus to the previously focused block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Storytelling Tool UI
    • Labels:
      None

      Description

       Steps to reproduce:

       

      1. Open the StoryTelling tool and create a new story ( https://staging-stories.floeproject.org/storyEdit.html )
      2. Add a couple of blocks 
      3. Focus one of the blocks
      4. Add a new block
      5. Click on the newly added block
      6. Notice that focus moves back to the previously focused block

       

      It is likely this is happening due to the delayed refresh of the reorder able elements (blocks). With the Reorderer when you move focus away from the reorderable elements it tracks what was last focused. When you refocus the group of reorderable elements it pushes focus to what had last been focused. In this case the new block is part of the reorderable container but not one of the reorderable elements yet, which is applied on focus. So the Reorderer tries to move focus to the previously selected reorderable element.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jobara Justin Obara
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: