Technically, you CAN do this, but it's fiddly, and just another example of the way the current game design makes you fight its own UI.
If you want to attack with just your main hand weapon, as your action, you must first click to toggle the dual-wield switch off, then make the attack, and then toggle it back on again if you want dual-wield attacks to remain your standard.