Solve The Problem when the element hidden.

Solve The Problem when the element hidden.