From a161132be4eff557428806202058af3cbfbb075a Mon Sep 17 00:00:00 2001 From: username Date: Tue, 27 Sep 2022 14:23:32 +0200 Subject: [PATCH] Calling parent event handler for CancelSelected --- src/pdf/PDFViewer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdf/PDFViewer.jsx b/src/pdf/PDFViewer.jsx index 9ebb0c8..5108cba 100644 --- a/src/pdf/PDFViewer.jsx +++ b/src/pdf/PDFViewer.jsx @@ -51,7 +51,7 @@ const PDFViewer = props => { } const onCancelSelected = a => { - console.log('cancel'); + props.onCancelSelected && props.onCancelSelected(a); } return pdf ?