Thanks for testing and feedback! (y)
It looks like all the UIButton, UIToggle, etc... are rendered with a "CanvasRenderer"-object.
Despite it's name it's not inherited from the "Renderer" class, which is what the script hides.
It was not indented, but yeah these should probably stay visible...