Dimmer retains class "visible active" after hiding the modal


When I hide semantic modal I’m getting black screen i.e. dimmer is not closing. The class in dimmer remains visible and active so user can see black screen until and unless the page is refreshed.

How to resolve this issue?

Please help !!