onScroll handler for underlying textarea does not get propagated correctly
sriramvenkateshan opened this issue · 1 comments
sriramvenkateshan commented
If we add the prop
onScroll={(e) => { /* do something here */ }}
the prop does not propagate correctly to the underlying textarea.
I find that we can correct this if we add the following change in TextArea.jsx:
_onScrollHandler = (e: SyntheticFocusEvent<*>) => {
const { onScroll } = this.props;
if (onScroll) {
e.persist();
onScroll(e);
}
this._closeAutocomplete();
};
Can someone please help validate this change and add it ?
sriramvenkateshan commented