File tree Expand file tree Collapse file tree 3 files changed +2
-237
lines changed Expand file tree Collapse file tree 3 files changed +2
-237
lines changed Original file line number Diff line number Diff line change @@ -655,11 +655,7 @@ class ShellBar extends UI5Element {
655
655
this . _detachSearchFieldListeners ( e . target as HTMLElement ) ;
656
656
return ;
657
657
}
658
- if ( this . showSearchField && this . search ?. value ) {
659
- // return if trying to collapse search field with value
660
- return ;
661
- }
662
- if ( ! isPhone ( ) ) {
658
+ if ( ! isPhone ( ) && ! this . search ?. value ) {
663
659
this . setSearchState ( ! this . showSearchField ) ;
664
660
}
665
661
}
@@ -878,10 +874,7 @@ class ShellBar extends UI5Element {
878
874
}
879
875
this . showSearchField = expanded ;
880
876
await renderFinished ( ) ;
881
- const prevented = ! this . fireDecoratorEvent ( "search-field-toggle" , { expanded } ) ;
882
- if ( ! prevented && this . search && ! expanded ) {
883
- this . search . value = "" ;
884
- }
877
+ this . fireDecoratorEvent ( "search-field-toggle" , { expanded } ) ;
885
878
}
886
879
887
880
onAfterRendering ( ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments