diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index a984c4c7b..d2febe2f3 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -45,6 +45,7 @@ - **Menu** - Added `flex: 0 0 auto` to menu item to make sure menu do not collapse text content to reduce space - **Menu** - Fix text align on `dropdown item` inside `icon menu` - **Menu** - Fixed issue with `labeled input` text inside menu not appearing vertically centered +- **Menu** - Fixed hybrid initialization not creating `menu` correctly. Fixed docs example of hybrid `') @@ -278,12 +287,6 @@ $.fn.dropdown = function(parameters) { if(settings.allowTab) { module.set.tabbable(); } - if($menu.length === 0) { - $menu = $('
') - .addClass(className.menu) - .appendTo($module) - ; - } }, select: function() { var @@ -297,7 +300,10 @@ $.fn.dropdown = function(parameters) { if($input.parent(selector.dropdown).length > 0) { module.debug('UI dropdown already exists. Creating dropdown menu only'); $module = $input.closest(selector.dropdown); - $menu = $module.children(selector.menu); + if( !module.has.menu() ) { + module.create.menu(); + } + $menu = $module.children(selector.menu); module.setup.menu(selectValues); } else {