Updating Rails applications on localhost - event.returnValue is an outdated warning

The My Rails application on the local host was unexpectedly updated using the browser back arrow. The Chrome console (31.0.1650.48) states:

event.returnValue is deprecated. Please use the standard event.preventDefault() instead. 

I think these problems are related.

I also found this recent issue in jQuery bugtracker. It's funny, but 10 hours ago everything was in order.

Anyone experiencing similar problems? What are the options?

EDIT: although I was browsing my application on the local host, I found out that the same issue occurs on multiple production sites showing the same console output, including 37signals

+6
source share
2 answers

I believe that this has a lot to do with the latest version of Chrome that you are using. I did not find the exact data, but it seems that Chrome has decided to abandon this property, which is currently used by jQuery.

Since this is just obsolescence, so far nothing will break, but it means that it will be removed in the future. Once jQuery fixes the problem, you should probably try updating.

Edit: Sorry, I missed the point - I would suggest that the random update is not related to the message you see about event.returnValue

+8
source

Check out this link. It seems that the js native method "event.returnValue" is marked as deprecated in newer versions of Chrome. http://bugs.jquery.com/ticket/14320

+1
source

Source: https://habr.com/ru/post/958052/


All Articles