Skip to content

Commit cd44f88

Browse files
committed
chore: bump to madwizard 0.9.9
1 parent 494ae5b commit cd44f88

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Diff for: package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: plugins/plugin-madwizard/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"access": "public"
2424
},
2525
"dependencies": {
26-
"madwizard": "^0.9.5"
26+
"madwizard": "^0.9.9"
2727
}
2828
}

Diff for: plugins/plugin-madwizard/src/components/Guide.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ export default class Guide extends React.PureComponent<Props, State> {
152152
* `this.onChoiceFromAbove()`
153153
*/
154154
private readonly onChoice = (evt: React.MouseEvent) => {
155-
const group = evt.currentTarget.getAttribute("data-choice-group")
155+
const key = evt.currentTarget.getAttribute("data-choice-key")
156156
const title = evt.currentTarget.getAttribute("data-choice-title")
157-
if (group && title) {
158-
this.props.choices.set(group, title)
157+
if (key && title) {
158+
this.props.choices.setKey(key, title)
159159
}
160160
}
161161

@@ -171,9 +171,9 @@ export default class Guide extends React.PureComponent<Props, State> {
171171
title={_.title}
172172
className="kui--tile"
173173
icon={this.choiceIcon2}
174-
isSelected={this.state.choices && this.state.choices.get(choice.group) === _.title}
174+
isSelected={this.state.choices && this.state.choices.get(choice) === _.title}
175175
onClick={this.onChoice}
176-
data-choice-group={choice.group}
176+
data-choice-key={choice.groupContext}
177177
data-choice-title={_.title}
178178
>
179179
{_.description && <Markdown nested source={_.description} />}
@@ -291,7 +291,7 @@ export default class Guide extends React.PureComponent<Props, State> {
291291
if (node) {
292292
const key = node.getAttribute("data-ouia-component-id")
293293
if (key) {
294-
this.state.choices.remove(key)
294+
this.state.choices.removeKey(key)
295295
}
296296
}
297297
}

0 commit comments

Comments
 (0)