File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ const metadata = {
95
95
* @defaultvalue 0.7
96
96
* @since 1.0.0-rc.13
97
97
*/
98
- stepSwitchThreshold : {
98
+ stepSwitchThreshold : {
99
99
type : Float ,
100
100
defaultValue : STEP_SWITCH_THRESHOLDS . DEFAULT ,
101
101
} ,
@@ -666,8 +666,10 @@ class Wizard extends UI5Element {
666
666
const newlySelectedIndex = this . slottedSteps . indexOf ( stepToSelect ) ;
667
667
const firstFocusableElement = await getFirstFocusableElement ( stepToSelect . firstElementChild ) ;
668
668
669
- // Focus the first focusable element within the step content corresponding to the currently focused tab
670
- firstFocusableElement . focus ( ) ;
669
+ if ( firstFocusableElement ) {
670
+ // Focus the first focusable element within the step content corresponding to the currently focused tab
671
+ firstFocusableElement . focus ( ) ;
672
+ }
671
673
672
674
// If the currently selected (active) step is clicked,
673
675
// just scroll to its starting point and stop.
You can’t perform that action at this time.
0 commit comments