Using 2022.1.20
It breaks the scripts and you lose both scrollbars. I had to remove the scroll view and put a new one in to get it working again, and then experiments showed what had caused it to stop working the first time.
Instead, uncheck the “Horizontal” checkbox to disable the horizontal scrollbar.