Auto-closing popup

0 Answers 384 Views
Popup
Lucien
Top achievements
Rank 1
Iron
Lucien asked on 01 Jun 2022, 07:54 AM

Hi, 

 

I would like to know if the popup has built-in method so that it can be closed automatically after randomly clicked anywhere else.

https://www.telerik.com/kendo-react-ui-develop/components/popup/get-started/

Didn't see anything like that in the doc and the forums here.

 

Thank you !

Filip
Telerik team
commented on 01 Jun 2022, 08:04 AM

Hello, Lucien, 

This can be achieved by attaching a global click handler and checking if the clicked element is the Popup and then programmatically closing it as shown here:

https://stackblitz.com/edit/react-dyn1m1-ad8ht6?file=app/main.js

Currently, we don't have an available property for this functionality, I can suggest submitting a feature request in our feedback portal where new ideas are constantly being evaluated:

https://feedback.telerik.com/kendo-react-ui

I hope this helps.

No answers yet. Maybe you can help?

Tags
Popup
Asked by
Lucien
Top achievements
Rank 1
Iron
Share this question
or