Completed
Last Updated: 06 Aug 2024 11:00 by ADMIN
Release 2024 Q3 (Aug)
Mario
Created on: 04 Mar 2024 16:23
Category: PdfViewer
Type: Bug Report
0
Exception when trying to search: Right-hand side of 'instanceof' is not an object
PdfViewer throws the JavaScript exception "Right-hand side of 'instanceof' is not an object" when clicking on the search button to search for words.
1 comment
ADMIN
Attila Antal
Posted on: 05 Mar 2024 08:47

Hi Mario,

Thank you for reporting the problem.

The latest build failed to compile one of the JavaScript files correctly, hence the exception. There are no changes to the source code itself, but we will need to run another build to fix the issue. This will likely be resolved in the next release once we run the build again.

Workaround

As a workaround, we found that you can add the following script to the page, right after the ScriptManager declaration and it will make it work again:

<script>
    kendo.observable = function (object) {
        var observableObject = kendo.data.ObservableObject;

        if (!(object instanceof observableObject)) {
            object = new observableObject(object);
        }
        return object;
    };
</script>
Please excuse us of any inconvenience this may have caused.

Regards,
Attila Antal
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources