After selecting the behavior for middle-click mouse action, it changes back automatically to the default.
Please see the video.
It works well when the extension is installed from Dash to Dock - GNOME Shell Extensions. The one from the package manager is at fault.
Dash to Dock version: gnome-shell-extension-dash-to-dock 69-4
(latest on Official Manjaro Repos)