Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
0.1
-
None
-
Unknown
-
Description
When the page content changes while a task moves to its next step, the popover of that step can be displayed in the top left corner of the page, instead of next to its target element, or in the middle of the page for a step without target element.
Steps to reproduce
- Create a task with a step that targets the "Add comment" button of the comment form, with "reflex" enabled, followed by a step without target element.
- Start the task, open the comment form, write a comment and click "Add comment".
Expected
The popover of the last step is displayed in the middle of the page.
Actual
The popover is sometimes displayed in the top left corner of the page, and stays there.
Cause
Adding the comment refreshes the comments section, which removes the "Add comment" button and makes the page scroll. On scroll, driver.js places the popover again, but against the element of the previous step until the move to the new step is over. The removed button has no position anymore, so the popover goes to the top left corner. driver.js doesn't place the popover again once the move ends.