This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
this.dispatchEvent(UPDATE)
called too often
#54
Labels
this.dispatchEvent(UPDATE)
called too often
#54
description
this.dispatchEvent(UPDATE)
should be called only when TextareaAutosize receives an unexpectedprops.value
while, at the moment, it's called every timeprops.value
is different fromprevProps.value
which happens after everyonChange
how to reproduce
specs
this.onChange
cache the current value asthis.currentValue
componentDidUpdate
callthis.dispatchEvent(UPDATE);
only ifprops.value
is different fromthis.currentValue
misc
{optional: other useful info}
The text was updated successfully, but these errors were encountered: