Workaround needed for verified webkit scrolling bug

I’ve been struggling for weeks now with the scrolling bug described here:

Basically, in iOS 14.3, the “Search” and “Profile” pages of the below app won’t scroll when visited using the sidebar. After visiting the pages, toggling the sidebar on/off once will re-enable scrolling. This problem does not occur in iOS 13.7.

I do not understand the workarounds given in the original bug description. Is anyone able to specifically address my problem by looking at the exact code I posted in “problemApp”? Your help would be VERY appreciated. Thank you!

Looks like OP found out how to implement a similar workaround in their app. Here is the implementation in React for anyone who runs into this: