Skip to content

Commit

Permalink
fix issues caused by solid-js not reactively rebinding events
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 18, 2024
1 parent 221db6e commit 30740de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/DeckEditor.jsx
Expand Up @@ -85,7 +85,7 @@ function DeckName(props) {
return (
<div
style="height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
onClick={[props.onClick, props.name]}>
onClick={() => props.onClick(props.name)}>
<a
href={`deck/${props.deck}`}
target="_blank"
Expand Down
2 changes: 1 addition & 1 deletion src/views/Match.jsx
Expand Up @@ -490,7 +490,7 @@ function Thing(props) {
}}
onMouseOver={setInfo}
onMouseLeave={props.onMouseOut}
onClick={[props.onClick, props.id]}>
onClick={() => props.onClick(props.id)}>
<Show
when={!faceDown()}
fallback={<div class="ico cback" style="left:2px;top:2px" />}>
Expand Down

0 comments on commit 30740de

Please sign in to comment.