Can't use searchtext for next search

Which product are you using?

Pdf.js Express Viewer
PDF.js Express Version

8.7.4
Detailed description of issue
couldn’t use searchtext API for next search result
Expected behaviour
docViewer.addEventListener(‘documentLoaded’, () => {

instance.UI.searchText(searchValue, {
caseSensitive: false,
wholeWord: false
});
});

i just call this, on first search it complete , but after i search same word again, it has error and won’t go to next search value

image

Does your issue happen with every document, or just one?
every documents, i did try to create new project and create new instance, the problems are the same

Link to document
(Basic searching | Documentation)

Code snippet
{Provide a relevant code snippet}

Thank you for posting the incident to our forum. We will provide you with an update as soon as possible.

Hi pattarasit.w.ba.proj
We were able to reproduce the issue based on your description and will submit a report to our Product Team. Thank you for bringing this to our attention.
As a potential workaround, you could try using the “searchTextFull” API. You can read more about it here:
https://pdfjs.express/api/UI.html#.searchTextFull__anchor

can we move to next search with searchTextFull ?

Hello pattarasit.w.ba.proj,
You should be able to jump to the next search result without problems.