Skip to content

Commit 80ebdb1

Browse files
committed
Fixed issue where show may be called to reset the stackview but state is not correctly reset in all cases.
1 parent 540cbe2 commit 80ebdb1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Import/Esri/ArcGISRuntime/Toolkit/Controls/PopupStackView.qml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,13 @@ Item {
191191
\brief Show the PopupStackView.
192192
*/
193193
function show() {
194+
if (popupStack.busy)
195+
return;
196+
194197
currentIndex = 0;
195198
if (popupManagers !== null && popupManagers.length > 0) {
196-
popup1.popupManagerInternal = popupManagers[currentIndex]
199+
swapPopups(popupStack.currentItem === popup1 ? popup1 : popup2,
200+
popupStack.currentItem === popup1 ? popup2 : popup1);
197201
}
198202
visible = true;
199203
}

0 commit comments

Comments
 (0)