mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner: Don't change value when changing min/max options
Fixes #9703 Closes gh-1252
This commit is contained in:
parent
9a93a06fbd
commit
796a8b37e2
@ -122,7 +122,7 @@ test( "stop", function() {
|
||||
});
|
||||
|
||||
asyncTest( "change", function() {
|
||||
expect( 14 );
|
||||
expect( 12 );
|
||||
var element = $( "#spin" ).spinner();
|
||||
|
||||
function shouldChange( expectation, msg ) {
|
||||
@ -239,13 +239,13 @@ asyncTest( "change", function() {
|
||||
shouldChange( false, "value, same value" );
|
||||
element.spinner( "value", 999 );
|
||||
|
||||
shouldChange( true, "max, value changed" );
|
||||
shouldChange( false, "max, value not changed" );
|
||||
element.spinner( "option", "max", 900 );
|
||||
|
||||
shouldChange( false, "max, value not changed" );
|
||||
element.spinner( "option", "max", 1000 );
|
||||
|
||||
shouldChange( true, "min, value changed" );
|
||||
shouldChange( false, "min, value not changed" );
|
||||
element.spinner( "option", "min", 950 );
|
||||
|
||||
shouldChange( false, "min, value not changed" );
|
||||
|
@ -403,7 +403,6 @@ return $.widget( "ui.spinner", {
|
||||
|
||||
_setOptions: spinner_modifier(function( options ) {
|
||||
this._super( options );
|
||||
this._value( this.element.val() );
|
||||
}),
|
||||
|
||||
_parse: function( val ) {
|
||||
|
Loading…
Reference in New Issue
Block a user