This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d65cca08-5275-4d91-b10b-a4acf5128c19 XWIKI-25798 Open

The image lightbox popover stays stuck on the screen after sorting a sortable table

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a8a8acae-a3ed-4ba4-96e0-2c62b7064c7c Vincent Massol created this issue on 19/Nov/26 09:40
 
Summary: The image lightbox popover stays stuck on the screen after sorting a sortable table
Issue Type: cid:jira-generated-image-avatar-d65cca08-5275-4d91-b10b-a4acf5128c19 Bug
Affects Versions: 14.1
Assignee: Unassigned
Components: Image
Created: 19/Nov/26 09:40
Priority: cid:jira-generated-image-static-major-133a0559-ed27-4b4d-9c86-ba0fa2053f2d Major
Reporter: Vincent Massol
Description:

Steps to reproduce

  1. Keep the image lightbox enabled (the default).
  2. Create a page with a sortable table:
    {{velocity}}
    $xwiki.ssfx.use("js/xwiki/table/table.css")
    $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
    {{/velocity}}
    
    (% class="grid sortable filterable doOddEven" id="sortableTable" %)
    (% class="sortHeader" %)|=Title 1|=Title 2
    |Cell 11|Cell 12
    |Cell 21|Cell 22
    
  3. Hover a sort arrow in the table header, wait for the popover, then click the arrow.

Expected

No image lightbox popover: the sort arrows are part of the table UI, not images of the page content.

Actual

The image lightbox popover is displayed for the sort arrow. After clicking the arrow it stays on the screen, even when the mouse moves away: sorting replaces the arrow image, so the event that hides the popover never fires.

Workaround: add data-xwiki-lightbox="false" to the table parameters, e.g. (% class="grid sortable filterable doOddEven" data-xwiki-lightbox="false" %).

Reported on https://forum.xwiki.org/t/sticky-pop-up-with-sortable-table-macro/19134

 
 

3 updates

 
cid:jira-generated-image-avatar-a8a8acae-a3ed-4ba4-96e0-2c62b7064c7c Changes by Vincent Massol on 19/Nov/26 09:40
 
Attachment: XWIKI-25798-before.png
Attachment: XWIKI-25798-after.png
Assignee: Vincent Massol