Skip to main content

Bug Tracker

Side navigation

#14601 closed bug (duplicate)

Opened December 03, 2013 09:23PM UTC

Closed December 04, 2013 08:18PM UTC

Little bug with preventDefault in jquery latest

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version:
Keywords: Cc:
Blocked by: Blocking:
Description

Hello, I've found a little bug with event.preventDefault.

My code

$('#back-top').click( function( e ){
				$('body,html').animate({scrollTop: 0}, 800);
e.preventDefault( );
});

When I click on the #back-top in console logging this

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Attachments (0)
Change History (1)

Changed December 04, 2013 08:18PM UTC by timmywil comment:1

resolution: → duplicate
status: newclosed

Duplicate of #14282.