If you have a floating (detached) window and try to do a block comment the comment is applied to the current active window in the editor and not to the floating window.
Works fine here.
Are you using the toolbar button? It will move the focus to the main window.
You should instead use Ctrl + Q / Ctrl + W or right click: