Revert "fix(dialog): Close dialog on location change."

This reverts commit a0d35df5a26e59390ae5e4a6696720a1212fdfa3.