From 683c6f5df7d40ce52bc6da10f382e3ba2c270852 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Mon, 21 Jun 2021 12:16:27 -0400 Subject: [PATCH] MM-36588 rebind the correct post list to the native view (#5472) --- app/components/post_draft/post_draft.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/post_draft/post_draft.js b/app/components/post_draft/post_draft.js index 9bac2a5ca..3ac029698 100644 --- a/app/components/post_draft/post_draft.js +++ b/app/components/post_draft/post_draft.js @@ -50,7 +50,7 @@ export default class PostDraft extends PureComponent { }; updateNativeScrollView = (scrollViewNativeID) => { - if (this.keyboardTracker?.current) { + if (this.keyboardTracker?.current && this.props.scrollViewNativeID === scrollViewNativeID) { const resetScrollView = requestAnimationFrame(() => { this.keyboardTracker.current.resetScrollView(scrollViewNativeID); cancelAnimationFrame(resetScrollView);