debug: add detailed logging to StackIcon click handler
cp
This commit is contained in:
1 parent
ae3a90d378
commit
0feb1e1b4a
1 file changed
+7
-1
@@ -17,9 +17,15 @@
|
||||
|
||||
function handleClick(e: MouseEvent) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
console.log('[StackIcon] Button clicked');
|
||||
console.log('[StackIcon] onClick prop:', onClick);
|
||||
console.log('[StackIcon] Current context:', context);
|
||||
if (onClick) {
|
||||
console.log('[StackIcon] Clicked - navigating to source');
|
||||
console.log('[StackIcon] Calling onClick callback');
|
||||
onClick();
|
||||
} else {
|
||||
console.warn('[StackIcon] No onClick callback provided');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user