File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ class StepInput extends UI5Element implements IFormInputElement {
483483
484484 _onButtonFocusOut ( ) {
485485 setTimeout ( ( ) => {
486- if ( ! this . _inputFocused ) {
486+ if ( ! this . _inputFocused && ! this . shadowRoot ! . activeElement ) {
487487 this . inputOuter . removeAttribute ( "focused" ) ;
488488 }
489489 } , 0 ) ;
@@ -507,13 +507,11 @@ class StepInput extends UI5Element implements IFormInputElement {
507507 }
508508
509509 _onMouseWheel ( e : WheelEvent ) {
510- if ( this . disabled || this . readonly ) {
510+ if ( this . disabled || this . readonly || ! this . _isFocused ) {
511511 return ;
512512 }
513513
514- if ( this . _isFocused ) {
515- e . preventDefault ( ) ;
516- }
514+ e . preventDefault ( ) ;
517515
518516 const isScrollUp = e . deltaY < 0 ;
519517 const modifier = isScrollUp ? this . step : - this . step ;
@@ -767,15 +765,25 @@ class StepInput extends UI5Element implements IFormInputElement {
767765 return ! Number . isNaN ( parsedValue ) && ! / , { 2 , } / . test ( typedValue ) ;
768766 }
769767
770- _decSpin ( ) {
768+ _decSpin ( e : MouseEvent ) {
769+ if ( this . _isFocused || this . _decIconDisabled ) {
770+ e . preventDefault ( ) ;
771+ }
771772 if ( ! this . _decIconDisabled ) {
772773 this . _spinValue ( false , true ) ;
774+ } else {
775+ this . input . focus ( ) ;
773776 }
774777 }
775778
776- _incSpin ( ) {
779+ _incSpin ( e : MouseEvent ) {
780+ if ( this . _isFocused || this . _incIconDisabled ) {
781+ e . preventDefault ( ) ;
782+ }
777783 if ( ! this . _incIconDisabled ) {
778784 this . _spinValue ( true , true ) ;
785+ } else {
786+ this . input . focus ( ) ;
779787 }
780788 }
781789
Original file line number Diff line number Diff line change 1818 box- sizing: bor der- box;
1919 height: var(- - _ui5_input_height);
2020 position: relative;
21+ is olation: is olate;
2122 margin: var(- - _ui5_input_margin_to p_botto m) 0;
2223 min- width: var(- - _ui5_step_input_min_width);
2324 text- align: right;
99100 pointer-events : none;
100101 border-radius : var (--sapField_BorderCornerRadius );
101102 border-style : var (--_ui5_input_error_warning_border_style );
102- z-index : 1 ;
103+ z-index : 0 ;
103104 border-width : 0px ;
104105}
105106
Original file line number Diff line number Diff line change 66 - - _ui5_select_icon_wrapper_state_height: 100%;
77 - - _ui5_input_icon_hover_bg: transparent;
88 - - _ui5_select_botto m_bor der_gradient: linear- gradient(var (--sapField_BorderColor ), var (- - sapField_Bor derColor )) botto m / 100% var(- - sapField_Bor derWidth) no- repeat;
9+ - - _ui5_input_focus_outline_color : var(- - sapContent_FocusColor );
10+ - - _ui5_input_readonly _focus_bor der_radius: 0;
911}
Original file line number Diff line number Diff line change 66 - - _ui5_select_icon_wrapper_state_height: 100%;
77 - - _ui5_input_icon_hover_bg: transparent;
88 - - _ui5_select_botto m_bor der_gradient: linear- gradient(var (--sapField_BorderColor ), var (- - sapField_Bor derColor )) botto m / 100% var(- - sapField_Bor derWidth) no- repeat;
9+ - - _ui5_input_focus_outline_color : var(- - sapContent_FocusColor );
10+ - - _ui5_input_readonly _focus_bor der_radius: 0;
911}
You can’t perform that action at this time.
0 commit comments