Skip to content

Commit

Permalink
chore: bump to madwizard 0.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Jun 9, 2022
1 parent 494ae5b commit cd44f88
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/plugin-madwizard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"access": "public"
},
"dependencies": {
"madwizard": "^0.9.5"
"madwizard": "^0.9.9"
}
}
12 changes: 6 additions & 6 deletions plugins/plugin-madwizard/src/components/Guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ export default class Guide extends React.PureComponent<Props, State> {
* `this.onChoiceFromAbove()`
*/
private readonly onChoice = (evt: React.MouseEvent) => {
const group = evt.currentTarget.getAttribute("data-choice-group")
const key = evt.currentTarget.getAttribute("data-choice-key")
const title = evt.currentTarget.getAttribute("data-choice-title")
if (group && title) {
this.props.choices.set(group, title)
if (key && title) {
this.props.choices.setKey(key, title)
}
}

Expand All @@ -171,9 +171,9 @@ export default class Guide extends React.PureComponent<Props, State> {
title={_.title}
className="kui--tile"
icon={this.choiceIcon2}
isSelected={this.state.choices && this.state.choices.get(choice.group) === _.title}
isSelected={this.state.choices && this.state.choices.get(choice) === _.title}
onClick={this.onChoice}
data-choice-group={choice.group}
data-choice-key={choice.groupContext}
data-choice-title={_.title}
>
{_.description && <Markdown nested source={_.description} />}
Expand Down Expand Up @@ -291,7 +291,7 @@ export default class Guide extends React.PureComponent<Props, State> {
if (node) {
const key = node.getAttribute("data-ouia-component-id")
if (key) {
this.state.choices.remove(key)
this.state.choices.removeKey(key)
}
}
}
Expand Down

0 comments on commit cd44f88

Please sign in to comment.