Skip to content

Commit

Permalink
Fix: #773 アカウントのホバーカードの無効化を解除
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Aug 5, 2024
1 parent 67a47f8 commit 7cac233
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/javascript/mastodon/components/hover_card_controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const enterDelay = 750;
const leaveDelay = 150;
const popperConfig = { strategy: 'fixed' } as UsePopperOptions;

const isHoverCardAnchor = (/*element: HTMLElement*/) => false; // set false until original is fixed some problem about this hover
// element.matches('[data-hover-card-account]');
const isHoverCardAnchor = (element: HTMLElement) =>
element.matches('[data-hover-card-account]');

export const HoverCardController: React.FC = () => {
const [open, setOpen] = useState(false);
Expand Down Expand Up @@ -70,7 +70,7 @@ export const HoverCardController: React.FC = () => {
}

// We've entered an anchor
if (!isScrolling && isHoverCardAnchor(/*target*/)) {
if (!isScrolling && isHoverCardAnchor(target)) {
cancelLeaveTimeout();

currentAnchor?.removeAttribute('aria-describedby');
Expand Down

0 comments on commit 7cac233

Please sign in to comment.