adopted-ember-addons / adopted-ember-addons/ember-paper

growTextarea may be called against destroyed component

オープン
#856 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
879
フォーク
327
PR マージ指標
30日以内にマージされた PR はありません

説明

Using `1.0.0-beta.2`, I had the following error reported to sentry:

> Cannot read property 'addClass' of undefined

From the `growTextarea` method.

The code looks like this:

```javascript
let inputElement = this.$('input, textarea');
inputElement.addClass('md-no-flex').attr('rows', 1);
```

We probably just miss a check against 'isDestroying' and 'isDestroyed' before trying to apply `growTextarea`.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。