PDF Viewer not working on mobile mode using version 19.2.0.47 if set EnableToolbar="false", EnableNavigationToolbar="false"

I have a client-side Blazor app and use the SfPdfViewer. I don't need toolbars. In v19.2.0.47 or erlier, when I set EnableToolbar="false" and EnableNavigationToolbar="false", this breaks the PDF Viewer on mobile mode. I see errors like this in Dev tools:


Cannot read property 'InitializeMobileToolbarInBlazor' of undefined


TypeError: Cannot read property 'InitializeMobileToolbarInBlazor' of undefined


    at https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:20548


    at u (https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:2418)


    at Generator._invoke (https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:2171)


    at Generator.next (https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:2777)


    at asyncGeneratorStep (https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:10948)


    at s (https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:11167)


    at https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:11260


    at new Promise (<anonymous>)


    at Object.<anonymous> (https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:11107)


    at Object.invokeMethod (https://localhost:5003/_content/Syncfusion.Blazor/scripts/syncfusion-blazor-extended-a9b31b.min.js:1:21113)





On Not mobile mode all works perfectly even on version 18.4.0.49




3 Replies 1 reply marked as answer

DM Dhivyabharathi Mohan Syncfusion Team July 16, 2021 07:09 AM UTC

Hi Andrew, 
  
  
We were able to reproduce the reported issue “Script error occurs while disabling the enableToolbar and enableNavigationToolbar in the mobile view”. We will analyze further and provide the details on July 20, 2021. 
  
  
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team July 20, 2021 12:55 PM UTC

Hi Andrew, 
 
 
We have confirmed that the reported issue Script error occurs while disabling the enableToolbar and enableNavigationToolbar in the mobile viewis a defect and the fix for the changes will be included in our upcoming weekly NuGet release on August 4, 2021. You can track the status using the below feedback link, 
 
 
 
 
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team August 5, 2021 03:21 AM UTC

Hi Andrew, 
 
We have resolved the reported issue in our latest weekly NuGet release version v19.2.0.51. Kindly upgrade to that version to resolve the issued.    
    
 
  
Packages:    
    
Blazor Client     
Blazor Sever    
Service side package       
ASP.NET Core :       
 
        
ASP.NET MVC:       
 
  
     
   
  
  
 
Regards,  
Dhivya.  


Marked as answer
Loader.
Up arrow icon