Residual detergent is blocking the catch of the detergent compartment.

Remove the residual detergent and clean the detergent compartment regularly.
The detergent compartment lid in the dishwasher cannot be closed properly.
Remove the residual detergent and clean the detergent compartment regularly.