add missing element prop to data. fix #936