Shouldn't this be within the `if (this.mode !== 'edit')` block below. Otherwise it will double enter edit mode sometimes.