This dropdown module is missing on AlloyUI 2.0.0pr5, but there's an easy solution for it. You need to toggle the aui-show
class on <ul class="aui-dropdown-menu">
.
YUI().use('node', 'node-focusmanager', function (Y) {
var document = Y.one(document),
toggler = Y.one('.aui-dropdown-toggle'),
dropdown = Y.one('.aui-dropdown-menu');
toggler.on('click', function(e) {
dropdown.toggleClass('aui-show');
e.preventDefault();
e.stopPropagation();
});
document.on('click', function() {
dropdown.removeClass('aui-show');
});
});
See it working on JSFiddle.
And by the way, AlloyUI 2.0.0pr6 already dropped the aui-
prefix.