From afabf5b81b7b24c9f6d1c54c97ec5b8f72787fa1 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 2 May 2013 17:47:24 +0300 Subject: [PATCH] Custom select: Remove dialog upon _destroy. Fixes #5935 - Dynamic Select empty when opening second time. --- js/widgets/forms/select.custom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/widgets/forms/select.custom.js b/js/widgets/forms/select.custom.js index 6b550c61b2a..817a394ad47 100644 --- a/js/widgets/forms/select.custom.js +++ b/js/widgets/forms/select.custom.js @@ -533,6 +533,9 @@ define( [ // Remove the popup this.listbox.remove(); + // Remove the dialog + this.menuPage.remove(); + // Chain up origDestroy.apply( this, arguments ); }