Popups API - Drupal 6.x-2.0-beta0 - Popup is automatically closing
I have did some analysys and changed the following code its started working

$settings['popups']['originalPath'] = $_GET['q'];

//Replaced with following code

$settings['popups']['originalPath'] = 'popups/test';


There is a function in popups.js which will check the end point of the form. Not sure exactly the cause of the issue.

 return done = (path === Popups.originalSettings.popups.originalPath);