Focus does not leave shape annotation

  1. Add a shape annotation to a document
  2. Notice that the points defining the shape are "highlighted" showing that this annotation has the focus
  3. Click anywhere else in the document
Result => focus still remains on the annotation
Expected Result => focus should leave the annotation

Regards,
Arthur

17 Replies

VV Visvesvar Venkatesan Syncfusion Team August 9, 2022 02:40 PM UTC

Hi Arthur,


We were unable to reproduce the reported issue with the provided details. We have shared a sample in which we tried to reproduce the issue.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/LOAD_Sample-383557369.zip

A video is shared that shows the behavior is proper.


Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SHAPEA~1866121929.zip


Kindly try this and revert to us with a modified sample, or code snippet, or a replication procedure to reproduce the issue. This will be helpful to analyze further and provide a solution at the earliest.

Regards,

Visvesvar K V



AB Arthur Butler August 11, 2022 10:04 AM UTC

Hi Visvesvar,


If you add  AnnotationAdded event, then the issue occurs.  I modified your example as shown below.


Regards,

Arthur

---------------------------------

@page "/"

@using Syncfusion.Pdf.Parsing;

@using Syncfusion.Blazor.PdfViewer



<SfPdfViewerServer @ref="pdfviewer" Height="500px" Width="1060px" >

    <PdfViewerEvents Created="DocumentLoad" AnnotationAdded="onAnnotationAdded"></PdfViewerEvents>

</SfPdfViewerServer>


@code{

    SfPdfViewerServer pdfviewer;


    public async void DocumentLoad()

    {

        byte[] byteArray = System.IO.File.ReadAllBytes("wwwroot/Data/Sample.pdf");

        string base64String = Convert.ToBase64String(byteArray);

        await pdfviewer.LoadAsync("data:application/pdf;base64," + base64String, null);

    }


    protected async void onAnnotationAdded(AnnotationAddEventArgs args)

    {

        //var data = await pdfviewer.ExportAnnotationsAsObject();

    }


}



VV Visvesvar Venkatesan Syncfusion Team August 12, 2022 11:16 AM UTC

Hi Arthur,


Thank you for the code snippet.


We were able to reproduce the reported issue  “Focus does not leave on shape annotation” and suspect this to be a defect. We will analyze further on this and update you with more details on August 17, 2022.


Regards,

Visvesvar K V



VV Visvesvar Venkatesan Syncfusion Team August 18, 2022 07:08 AM UTC

Hi Arthur,


We have confirmed that the reported issue “Focus does not leave on shape annotation” is a defect and logged the defect reported for the same. The fix for the issue will be included in our upcoming weekly NuGet release on September 7 , 2022. You can track the status using the below feedback link.


Focus does not leave shape annotation | Issue Feedback 


Regards,

Visvesvar K V 



AB Arthur Butler September 7, 2022 06:43 AM UTC

This appears to not be resolved in this week's build.  Do you have a new ETA?



VV Visvesvar Venkatesan Syncfusion Team September 8, 2022 09:56 AM UTC

Hi Arthur,


Sorry for the inconvenience. The fix for the reported issue was not included in our latest release. However, it will be included in our upcoming weekly release on September 14, 2022.


Regards,

Visvesvar K V 



VV Visvesvar Venkatesan Syncfusion Team September 15, 2022 07:36 AM UTC

Hi Arthur,


We have fixed the reported issue “Focus does not leave on shape annotation” and the fix for the reported issue was included in our latest weekly release v20.2.0.49. Kindly upgrade to that version to get the issue resolved.


Blazor Client   

https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewer/

Blazor Sever  

https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewerServer.Windows  


  

Blazor CDN links:

https://cdn.syncfusion.com/blazor/20.2.49/styles/bootstrap5.css

https://cdn.syncfusion.com/blazor/20.2.49/syncfusion-blazor-pdfviewer.min.js



Regards,

Visvesvar K V 



AB Arthur Butler September 18, 2022 07:13 AM UTC

Hi Visvesvar,

This does not appear to be fixed. In your sample application where I added the onAnnotationAdded event, the focus does not leave when you click somewhere else in the document.

Regards,
Arthur



VV Visvesvar Venkatesan Syncfusion Team September 19, 2022 01:55 PM UTC

Hi Arthur,


The issue does not appear from the version (20.2.49). We have shared the sample in which we have tried to reproduce the issue in the below link.
 

Sample - https://www.syncfusion.com/downloads/support/directtrac/general/ze/LOAD_Sample2117006288.zip


We have also added replication video scenario of it below.


Video - https://www.syncfusion.com/downloads/support/directtrac/general/ze/Focus_blazor426814388.zip


Kindly try this and revert to us with modified sample, code snippet, replication procedure and more details about the reported issue if you have any concerns. This will be helpful for us to analyze further and provide the details.

NOTE: Make sure that the versions of the script and the packages are same.


Regards,

Visvesvar K V



AB Arthur Butler September 20, 2022 08:45 AM UTC

Thanks for the sample.  FYI, this still does not work for arrows/lines.

Regards,

Arthur



AB Arthur Butler September 21, 2022 06:31 AM UTC

Please see attached example where the issue fails when I add Settings to establish the default colors for the annotations.

Regards,
Arthur


Attachment: LOAD_Sample_6e266b19.zip


VV Visvesvar Venkatesan Syncfusion Team September 21, 2022 04:29 PM UTC

Hi Arthur,


We were able to reproduce the reported issue  “Focus does not leave on shape annotation” and suspect this to be a defect. We will analyze further on this and update you with more details on September 23, 2022.


Regards,

Visvesvar K V



SK Sinthiya Kalimuthu Syncfusion Team September 23, 2022 01:51 PM UTC

Hi Arthur,


You can use the AnnotationSettings as we mentioned in the below screenshot to resolve the reported issue. Kindly refer to it and revert to us if you have any concerns about it.


Screenshot:




Regards,

Sinthiya Kalimuthu



AB Arthur Butler September 23, 2022 07:56 PM UTC

Thank you, that does fix most of the issues.  There is still an issue when adding an initial arrow or line.


Regards,

Arthur



VV Visvesvar Venkatesan Syncfusion Team September 26, 2022 02:26 PM UTC

Hi Arthur,


Sorry for the inconvenience.


We have confirmed that the reported issue “Focus does not leave shape annotations with shape settings” is a defect and logged the defect reported for the same. The fix for the issue will be included in our upcoming weekly NuGet release on October 5, 2022. You can track the status using the below feedback link.


Feedback - Focus does not leave on shape annotation for shape settings | Issue Feedback


Regards,

Visvesvar K V



VV Visvesvar Venkatesan Syncfusion Team October 6, 2022 10:59 AM UTC

Hi Arthur,


Sorry for the inconvenience. The fix for the reported issue was not included in our latest release. However, it will be included in our upcoming weekly release on October 12, 2022.


Kindly Find the custom nuget package below.


Custom NuGet Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Custom_NuGet-2086249140



Regards,

Visvesvar K V 



VV Visvesvar Venkatesan Syncfusion Team October 13, 2022 04:28 AM UTC

Hi Arthur,


We have fixed the reported issue “Focus does not leave shape annotations with shape settings” and the fix for the reported issue was included in our latest weekly release v20.3.0.49. Kindly upgrade to that version to get the issue resolved.


Blazor Client   

https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewer/

Blazor Sever  

https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewerServer.Windows  


Blazor CDN links:

https://cdn.syncfusion.com/blazor/20.3.49/styles/bootstrap5.css

https://cdn.syncfusion.com/blazor/20.3.49/syncfusion-blazor-pdfviewer.min.js



Regards,

Visvesvar K V 


Loader.
Up arrow icon