Skip to content

Fixes AAI-413: Clone Sidekick from Chats Page Redirects Incorrectly Due to Click Event Conflict #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: upgrade/v3_0_3__merge
Choose a base branch
from

Conversation

diecoscai
Copy link

Description

Fixes AAI-413: Clone Sidekick from Chats Page Redirects Incorrectly Due to Click Event Conflict

Changes Made

  • Added explicit event prevention in clone button click handlers
  • Ensured proper event propagation stopping for both icon and regular button variants
  • Maintained existing event prevention in handleClone function as a safeguard

Root Cause

The issue was caused by event propagation conflicts between the clone button click event and the card's click event. The clone button's click event was bubbling up to the card, causing both events to fire and resulting in incorrect navigation.

Testing

  1. Navigate to the Chats page
  2. Locate a sidekick to clone
  3. Click the clone button
  4. Verify that it redirects directly to the canvas page without any intermediate redirects

Related Issues

  • Fixes AAI-413

Copy link

vercel bot commented Jun 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
answerai-docs ✅ Ready (Inspect) Visit Preview Jun 11, 2025 9:06pm
the-answerai ✅ Ready (Inspect) Visit Preview Jun 11, 2025 9:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant