kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
AutosuggestTextarea: bind `this`, fix crash in older browsers
rodzic
de375cdb15
commit
f244bd3ce1
|
@ -157,7 +157,8 @@ class AutosuggestTextarea extends ImmutablePureComponent<IAutosuggesteTextarea>
|
||||||
if (lastTokenUpdated && !valueUpdated) {
|
if (lastTokenUpdated && !valueUpdated) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return super.shouldComponentUpdate!(nextProps, nextState, undefined);
|
// https://stackoverflow.com/a/35962835
|
||||||
|
return super.shouldComponentUpdate!.bind(this)(nextProps, nextState, undefined);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue