Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

core-dialog: fix bug where parent-dialog was used instead of nested dialog when checking top level dialog

Compare
Choose a tag to compare
@wwalmnes wwalmnes released this 28 Jun 11:29
· 836 commits to master since this release

Previously, when core-dialog attempted to find the top level dialog it only looked at the z-index of the various dialogs. However, this can cause an error when using nested dialogs. An example scenario could be (although maybe a bit contrived):
Open dialog A1, open nested dialog A2, open dialog B1, call dialog A1 again in order to have it appear above B1. A2 should be the top level dialog now.

core-dialog now considers the relation between dialogs now (if they are nested or not) and returns the correct top level dialog.