dialog component fix custom elem animate bug