File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -316,12 +316,12 @@ class ShellBar extends UI5Element {
316
316
/**
317
317
* Disables the automatic search field expansion/collapse when the available space is not enough.
318
318
*
319
- * **Note:** The `disableAutoSearchField ` property is in an experimental state and is a subject to change.
319
+ * **Note:** The `disableSearchCollapse ` property is in an experimental state and is a subject to change.
320
320
* @default false
321
321
* @public
322
322
*/
323
323
@property ( { type : Boolean } )
324
- disableAutoSearchField = false ;
324
+ disableSearchCollapse = false ;
325
325
326
326
/**
327
327
* Defines the `primaryTitle`.
@@ -1276,8 +1276,8 @@ class ShellBar extends UI5Element {
1276
1276
get autoSearchField ( ) {
1277
1277
const onFocus = document . activeElement === this . searchField [ 0 ] ;
1278
1278
const hasValue = this . searchField [ 0 ] ?. value ?. length > 0 ;
1279
- const disableAutoSearchField = this . disableAutoSearchField || onFocus || hasValue ;
1280
- if ( disableAutoSearchField ) {
1279
+ const disableSearchCollapse = this . disableSearchCollapse || onFocus || hasValue ;
1280
+ if ( disableSearchCollapse ) {
1281
1281
return false ;
1282
1282
}
1283
1283
return this . showSearchField || this . _autoRestoreSearchField ;
Original file line number Diff line number Diff line change 290
290
291
291
[ "focus" , "blur" , "input" ] . forEach ( ( event ) => {
292
292
customSearchInput . addEventListener ( event , ( ) => {
293
- shellbar_hide_search . disableAutoSearchField =
293
+ shellbar_hide_search . disableSearchCollapse =
294
294
customSearchInput . value || customSearchInput === document . activeElement ;
295
295
} ) ;
296
296
} ) ;
You can’t perform that action at this time.
0 commit comments