Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions semcore/wizard/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).

## [16.1.11] - 2025-10-30

### Fixed

- Disabled `Wizard.Stepper` in `Sidebar` can be focused and activated by keyboard.

## [16.1.10] - 2025-10-06

### Changed
Expand Down
8 changes: 8 additions & 0 deletions semcore/wizard/src/Wizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ class WizardRoot extends Component {
stepperFocusPrev = (i) => () => {
const prevStep = this._steps.get(i);
if (!prevStep) return;
if (prevStep.disabled) {
this.stepperFocusPrev(i - 1)();
return;
}
this.setState({ highlighted: prevStep?.step });
setTimeout(() => {
this.stepperRefs[i - 1]?.focus();
Expand All @@ -84,6 +88,10 @@ class WizardRoot extends Component {
stepperFocusNext = (i) => () => {
const nextStep = this._steps.get(i + 2);
if (!nextStep) return;
if (nextStep.disabled) {
this.stepperFocusNext(i + 1)();
return;
}
this.setState({ highlighted: nextStep?.step });
setTimeout(() => {
this.stepperRefs[i + 1]?.focus();
Expand Down
Loading