I am showing P-dialog in the image click.When I click/select out side the dialog in the app screen the dialog is not closing.
How to close p-dialog on any selection of place in the screen i.e outside of the dialog?
You can set flag [dismissableMask]="true"
to close the modal on clicking outside.
<p-dialog [(visible)]="display" [dismissableMask]="true"></p-dialog>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With