That's headcanon as it never actually landed on Doflamingo, he was just too busy schooling Low the entire time
Hancock's powers were never shown or stated to be negated by haki, unlike Low's which is repeatedly said and shown to have such a weakness, and Blackbeard Low is a devil fruit merchant with dogshit haki the same as Low, of course you'd focus on the exception