Skip to content

Commit

Permalink
Make small changes related to hover cards
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-white committed Dec 11, 2024
1 parent 5e95312 commit 12afaf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/container/hover-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ that manages reactive state for the hover card. There is only ever a single
hover card shown at a time.
This hover card object is how the useHoverCard() composable communicates with
the HoverCards component. The object is included in the container object, but
the HoverCards component. The object is included in the `container` object, but
most components will not use it directly. Most components should use the
useHoverCard() composable instead.
*/
Expand Down Expand Up @@ -51,7 +51,7 @@ class HoverCardData {
}

show(anchor, type, data = null) { this.#set(anchor, type, data); }
hide() { if (this.state) this.#set(null, null, null); }
hide() { this.#set(null, null, null); }
}

export default () => new HoverCardData();

0 comments on commit 12afaf1

Please sign in to comment.