message: fix(DropdownMenu): should't close when custom container and get clicked
diff: @@ -40,6 +40,14 @@ export default createComponent({
  }
  },
  + beforeCreate() {
  + const createEmitter = eventName => () => this.$emit(eventName);
  +
  + this.onOpen = createEmitter('open');
  + this.onClose = createEmitter('close');
  + this.onOpened = createEmitter('opened');
  + },
  +
  methods: {
  toggle(show = !this.showPopup, options = {}) {
  if (show === this.showPopup) {
  @@ -53,15 +61,13 @@ export default createComponent({
  this.parent.updateOffset();
  this.showWrapper = true;
  }
  - }
  },
  - beforeCreate() {
  - const createEmitter = eventName => () => this.$emit(eventName);
  -
  - this.onOpen = createEmitter('open');
  - this.onClose = createEmitter('close');
  - this.onOpened = createEmitter('opened');
  + onClickWrapper(event) {
  + if (this.getContainer) {
  + event.stopPropagation();
  + }
  + }
  },
  render() {
  @@ -113,6 +119,7 @@ export default createComponent({
  ref="wrapper"
  style={style}
  class={bem([direction])}
  + onClick={this.onClickWrapper}
  >
  <Popup
  vModel={this.showPopup}
  