Hello.
After customization form in PowerApps, it closed automatically if you click not at form area but somewhere else.

Without customization, form closed only if you click corresponding buttons for a new item - Save or Cancel.
Could someone advice about how to solve this issue with a customized form?