code: function () {
          var self = this, onClickHandler = self.settings.onclick;
  
          self.on('click', function (e) {
            var node = e.target;
  
            if (e.control == this) {
              // Find clicks that is on the main button
              while (node) {
                if ((e.aria && e.aria.key != 'down') || (node.nodeName == 'BUTTON' && node.className.indexOf('open') == -1)) {
                  e.stopImmediatePropagation();
  
                  if (onClickHandler) {
                    onClickHandler.call(this, e);
                  }
  
                  return;
                }
  
                node = node.parentNode;
              }
            }
          });
  
          delete self.settings.onclick;
  
          return self._super();
        }
docs: Called after the control has been rendered.
  
  @method postRender