Skip to content

Commit ef4044c

Browse files
authored
Merge pull request #319 from Esri/anmacdonald/resolved_stackview
Fixed `show` function state
2 parents 7eb9f82 + 80ebdb1 commit ef4044c

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)