Only use the date popup widget when the element is visible