Thinking out loud, would it be possible to delete this data-dialog attribute when the panel loses visibility?