@@ -188,8 +188,8 @@ class NumberBoxBase<
188188
189189 _renderValue ( ) {
190190 const inputValue = this . _input ( ) . val ( ) ;
191- const { value } = this . option ( ) ;
192-
191+ const value = this . option ( 'value' ) ;
192+ // @ts -expect-error ts-error
193193 if ( ! inputValue . length || Number ( inputValue ) !== value ) {
194194 this . _forceValueRender ( ) ;
195195 this . _toggleEmptinessEventHandler ( ) ;
@@ -198,6 +198,7 @@ class NumberBoxBase<
198198 const valueText = isDefined ( value ) ? null : messageLocalization . format ( 'dxNumberBox-noDataText' ) ;
199199
200200 this . setAria ( {
201+ // @ts -expect-error ts-error
201202 // eslint-disable-next-line spellcheck/spell-checker
202203 valuenow : ensureDefined ( value , '' ) ,
203204 // eslint-disable-next-line spellcheck/spell-checker
@@ -225,17 +226,20 @@ class NumberBoxBase<
225226 }
226227
227228 _renderProps ( ) : void {
228- const { min, max, step } = this . option ( ) ;
229229 // @ts -expect-error ts-error
230- this . _input ( ) . prop ( { min, max, step } ) ;
230+ this . _input ( ) . prop ( {
231+ min : this . option ( 'min' ) ,
232+ max : this . option ( 'max' ) ,
233+ step : this . option ( 'step' ) ,
234+ } ) ;
231235
232236 this . setAria ( {
233237 // @ts -expect-error ts-error
234238 // eslint-disable-next-line spellcheck/spell-checker
235- valuemin : ensureDefined ( min , '' ) ,
239+ valuemin : ensureDefined ( this . option ( ' min' ) , '' ) ,
236240 // @ts -expect-error ts-error
237241 // eslint-disable-next-line spellcheck/spell-checker
238- valuemax : ensureDefined ( max , '' ) ,
242+ valuemax : ensureDefined ( this . option ( ' max' ) , '' ) ,
239243 } ) ;
240244 }
241245
@@ -270,13 +274,16 @@ class NumberBoxBase<
270274
271275 value = this . _correctRounding ( value , step * sign ) ;
272276
273- const { min, max } = this . option ( ) ;
277+ const min = this . option ( 'min' ) ;
278+ const max = this . option ( 'max' ) ;
274279
275280 if ( isDefined ( min ) ) {
281+ // @ts -expect-error ts-error
276282 value = Math . max ( min , value ) ;
277283 }
278284
279285 if ( isDefined ( max ) ) {
286+ // @ts -expect-error ts-error
280287 value = Math . min ( max , value ) ;
281288 }
282289
0 commit comments