Removing hardcoded preventdefault