Gizmo rotation validation does not work

Hello everyone! I’m trying to do validation for gizmo rotation. In the attached playground, the gizmo should not rotate (?) the cube, but it does. It is noteworthy that the same code with position gizmo works as needed. What is it? A bug or something I don’t understand?

Adding @Cedric our Gizmo guru

I’m taking a look