diff options
author | Felix Nagel <info@felixnagel.com> | 2013-10-10 00:08:49 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-10-10 00:08:49 +0200 |
commit | e26e0df3afdfe6c43ed9f904281abb7e38ba1df1 (patch) | |
tree | 03ab5416339969869855786ab5154e7e08b650ac /ui/jquery.ui.spinner.js | |
parent | f8377ed5afe083a916f965aee4a30a65dfd2560a (diff) | |
parent | 9620812986a090668c44d48a7c85a46b580a89df (diff) | |
download | jquery-ui-e26e0df3afdfe6c43ed9f904281abb7e38ba1df1.tar.gz jquery-ui-e26e0df3afdfe6c43ed9f904281abb7e38ba1df1.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r-- | ui/jquery.ui.spinner.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index a4912fc7e..3bbd35f88 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -55,8 +55,12 @@ $.widget( "ui.spinner", { this._setOption( "min", this.options.min ); this._setOption( "step", this.options.step ); - // format the value, but don't constrain - this._value( this.element.val(), true ); + // Only format if there is a value, prevents the field from being marked + // as invalid in Firefox, see #9573. + if ( this.value() !== "" ) { + // Format the value, but don't constrain. + this._value( this.element.val(), true ); + } this._draw(); this._on( this._events ); |