Summary
When “Do Not Close On Button Pressed” in a Popup Dialog Device is turned on, when using the regular Popup UI, the setting will work as expected and not close when pressing a button. However, when you use a Widget Override to have custom UI buttons, it fails to work and the Popup will still hide when clicking a button.
Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Devices
Steps to Reproduce
-
Place two popup dialog devices (one with widget override, one without). For the popup without the widget override, make sure there’s a back button so that you can exit the UI.
-
Turn on “Do Not Close On Button Pressed” for both of them.
-
Make a Modal Dialog Variant Widget, add a UI button in the widget and make a viewbinding that connects the UI button to the Popup UI ‘Click Event’
-
Add the Widget to the Widget Override in the Popup Dialog device that will be used for the custom UI popup.
-
Add two buttons, one for each popup dialog. One button, on clicked will show the pop up UI WITHOUT the Widget Override, and the other button will show the Pop up UI WITH the WIdget Override.
-
Launch session and test both Popups
Expected Result
No matter what popup UI is being shown, when clicking a button, the Popup shouldn’t hide.
Observed Result
When clicking a button on the Popup without a Widget Override, it works as intended and doesn’t hide. When clicking a button on the Popup with a Widget Override however, the popup hides even when told not to.
Platform(s)
Windows PC