Cannot read properties of undefined (reading 'isTextSelection')

Steps to reproduce the error:

1. Open the following link: https://stackblitz.com/edit/ns6rcb-vwlrdt?file=index.js,index.html

2. Click on the folder icon (Open file) and open the PDF document attached to this message. 

3. Right-click on a field.

4. The following error is displayed in the console.

Image_2796_1712076838051


Attachment: document_17cf612e.zip

3 Replies 1 reply marked as answer

SK Sathiyaseelan Kannigaraj Syncfusion Team April 3, 2024 10:35 AM UTC

Hi Pere Argelich,

We were able to reproduce the reported issue  "Exception occurred on right click form fields” and suspect this to be a defect. We will analyze further on this and update you with more details on April 5th, 2024.


Regards,
Sathiyaseelan K



SK Sathiyaseelan Kannigaraj Syncfusion Team April 5, 2024 12:57 PM UTC

Hi Pere Argelich,

We have confirmed the issue 
"Exception occurred on right click form fields" and logged it as a defect. The fix for the issue will be available in our upcoming weekly NuGet release on April 17th, 2024. You can track the status of the issue through the following link.

Feedback link
Exception occurred on right click form fields | Issue Feedback

Disclaimer:
 "Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization." 


Regards,
Sathiyaseelan K



SK Sathiyaseelan Kannigaraj Syncfusion Team April 17, 2024 12:38 PM UTC

Hi Pere Argelich,

We have fixed the reported issue
"Exception occurred on right click form fields" and the fix for the reported issue was included in our latest weekly release v25.1.40. Kindly upgrade to that version to get the issue resolved.

Root cause: The issue occurred because the document provided by the customer has restrictions on content copying, page extraction, and commenting, which disabled the text selection module.

Solution: We should validate whether the textSelectionModule is null or undefined before accessing the isTextSelection property in the contextMenuOnBeforeOpen method within the context-menu file.

Packages
:   

Service side package

ASP.NET Core :      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows/ 

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux/       

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.OSX/ 

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core     

ASP.NET MVC:      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc5/      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc4/


CDN Links:


https://cdn.syncfusion.com/ej2/25.1.40/dist/ej2.min.js
https://cdn.syncfusion.com/ej2/25.1.39/material.css
https://cdn.syncfusion.com/ej2/25.1.40/dist/ej2-pdfviewer-lib/pdfium.js
https://cdn.syncfusion.com/ej2/25.1.40/dist/ej2-pdfviewer-lib/pdfium.wasm 


Regards,
Sathiyaseelan K


Marked as answer
Loader.
Up arrow icon