File tree 2 files changed +8
-3
lines changed
components/src/mobile/bottom-sheet-select-control
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ import { BottomSheet } from '@wordpress/components';
16
16
*/
17
17
import styles from './style.scss' ;
18
18
19
+ const EMPTY_OPTION = {
20
+ label : '' ,
21
+ } ;
22
+
19
23
const BottomSheetSelectControl = ( {
20
24
label,
21
25
icon,
@@ -34,9 +38,9 @@ const BottomSheetSelectControl = ( {
34
38
} ;
35
39
} ;
36
40
37
- const selectedOption = items . find (
38
- ( option ) => option . value === selectedValue
39
- ) ;
41
+ const selectedOption =
42
+ items . find ( ( option ) => option . value === selectedValue ) ??
43
+ EMPTY_OPTION ;
40
44
41
45
const goBack = ( ) => {
42
46
setShowSubSheet ( false ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ For each user feature we should also add a importance categorization label to i
10
10
-->
11
11
12
12
## Unreleased
13
+ - [ * ] Add empty fallback option for the BottomSheetSelectControl component
13
14
14
15
## 1.116.0
15
16
- [ ** ] Highlight color formatting style improvements [ #57650 ]
You can’t perform that action at this time.
0 commit comments