We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81b2ef4 commit bdd602eCopy full SHA for bdd602e
ui/jquery.ui.spinner.js
@@ -49,6 +49,15 @@ $.widget( "ui.spinner", {
49
this._draw();
50
this._bind( this._events );
51
this._refresh();
52
+
53
+ // turning off autocomplete prevents the browser from remembering the
54
+ // value when navigating through history, so we re-enable autocomplete
55
+ // if the page is unloaded before the widget is destroyed. #7790
56
+ this._bind( this.element[0].ownerDocument.defaultView, {
57
+ beforeunload: function() {
58
+ this.element.removeAttr( "autocomplete" );
59
+ }
60
+ });
61
},
62
63
_getCreateOptions: function() {
0 commit comments