this.doResize())
      let setupDone = false
      if (this.get().realm === 'dialog') {
        // wait for dialog to render first
        on('dialogDidRender', this, id => {
          if (id === dialogId && !setupDone) {
            setupDone = true
            this.setup()
          }
        })
      } else {
        setupDone = true
        this.setup()
      }
    },
    ondestroy () {
      if (this._autosuggest) {
        this._autosuggest.destroy()
        this._autosuggest = null
      }
      if (