Hi all.
I was working on a longer post, but it crashed and disappeared.
So here is the shorter version:
I have multiple type
I loaded an items{} object with URLs and Titles from search results.
I triggered the checklist with this line:
let userSelected = Zotero.selectItems(items);
The checklist pops up ok, but it is immediately proceeding to the next line of code (~if !userSelected return) before the user has time to select anything or even cancel.
I changed the function to async and changed the line to:
let userSelected = await Zotero.selectItems(items);
Same thing. I do see examples where Zotero.selectItems() has a second parameter that is a callback function basically doing what my next line of code was doing, but I got my code from looking at another example on the internet where the second param was left out.
Is that the problem? What else can be causing the code to proceed on while the selection box is still open?
(The longer version was lots of backstory).
Thanks!