diff --git a/js/NumberPicker.js b/js/NumberPicker.js index ef61303b..79684fce 100644 --- a/js/NumberPicker.js +++ b/js/NumberPicker.js @@ -156,6 +156,9 @@ class NumberPicker extends AccessibleNumberSpinner( Node, 0 ) { options.keyboardStep = keyboardStep; options.shiftKeyboardStep = keyboardStep; + const boundsRequiredOptionKeys = _.pick( options, Node.REQUIRES_BOUNDS_OPTION_KEYS ); + options = _.omit( options, Node.REQUIRES_BOUNDS_OPTION_KEYS ); + super( options ); //------------------------------------------------------------ @@ -415,6 +418,9 @@ class NumberPicker extends AccessibleNumberSpinner( Node, 0 ) { tandem: options.tandem.createTandem( 'valueProperty' ) } ); + // Mutate options that require bounds after we have children + this.mutate( boundsRequiredOptionKeys ); + // @private this.disposeNumberPicker = () => {