Permalink
Browse files

Custom select: Remove dialog upon _destroy. Fixes #5935 - Dynamic Sel…

…ect empty when opening second time.

(cherry picked from commit afabf5b)
  • Loading branch information...
1 parent d5f995b commit 2e55b227c31e1640ae7555fb621cf2a813d549a7 @gabrielschulhof gabrielschulhof committed May 2, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 js/widgets/forms/select.custom.js
@@ -546,6 +546,9 @@ define( [
// Remove the popup
this.listbox.remove();
+ // Remove the dialog
+ this.menuPage.remove();
+
// Chain up
origDestroy.apply( this, arguments );
}

0 comments on commit 2e55b22

Please sign in to comment.