mathiasbynens/jquery-placeholder

Placeholder values erased when clicking any link on the page

chadwithuhc opened this issue · 1 comments

I've run into an error whenever I click a link on the page (for a Modal or expanding menu) all of the placeholder values on the page get erased. I can fix the problem if I comment out the following lines:

$(window).bind('beforeunload.placeholder', function() {
$('.'+settings.customClass).each(function() {
this.value = '';
});
});

Is this necessary to have in there since we already have a form submit listener?

Should be fix.