Open a modal can't hide

I open a model in mac ,the model can close ,but in phone device can’t hide occasionally