It appears that the leak is coming from the float switch housing. Another thing I am a little suspicious is the drain hose from the dishwasher to the garbage disposal.
The bottom of the hose has a low spot just before it drains to the disposal. In looking online at typical setups, there is typically a gradual slope from the high point of the hose where it is attached to the top of the cabinet to the disposal.
I’m no expert by any means, but if I were to venture a guess, I would guess the leaking is somehow tied to when there is a blockage in the sink drain to the disposal, and the substandard dishwasher drain gets backed up into the dishwasher, hence the leaking. Curious to find out your thoughts as to what may be causing the leak.