earlSt1 / vtt-compendium-folders

Collapsable folders in the compendium directory and folder structures inside compendiums for FoundryVTT
21 stars 18 forks source link

[Bug] Sometimes in large compendiums, the context menu does not appear for root folders #30

Closed earlSt1 closed 3 years ago

earlSt1 commented 3 years ago

This is an issue where the context menu does appear, its just so far off the screen that its sometimes unreachable. This macro will click the required button after you right click on the folder in question

if (document.querySelector('#folder-context-menu')!=null){
   // Edit folder button
   //document.querySelector('#folder-context-menu  .context-item').click()
   // Delete folder button
   //document.querySelectorAll('#folder-context-menu  .context-item')[1].click()
   console.log("Menu exists")
}else{
    console.log("Menu does not exist")
}
earlSt1 commented 3 years ago

Fixed in v2.1.4