fix a bug cause by data-preventdefault

fix a bug by data-preventdefault that may cause no out element;