fix: debug panel close button not working
Added event.preventDefault() and event.stopPropagation() to close button handler to prevent any interference from parent elements. Also added pointer-events: none to button icons to ensure clicks on the icon register on the button itself, not the <i> element. Changes: - src/systems/ui/debug.js: Added e.preventDefault/stopPropagation to close handler - src/systems/ui/debug.js: Added console.log for debugging - style.css: Added pointer-events: none to .rpg-debug-actions button i
This commit is contained in:
@@ -63,7 +63,10 @@ function setupDebugEventHandlers() {
|
||||
});
|
||||
|
||||
// Close button
|
||||
$('#rpg-debug-close').on('click', function() {
|
||||
$('#rpg-debug-close').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
console.log('[RPG Debug] Close button clicked');
|
||||
$('#rpg-debug-panel').removeClass('rpg-debug-open');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user