Add debug logging for topic toggle
This commit is contained in:
1 parent
2a451dcf80
commit
11cf280bbe
1 file changed
+2
@@ -343,7 +343,9 @@ async function loadWiki() {
|
||||
|
||||
// Toggle topic on click
|
||||
topicTitle.onclick = () => {
|
||||
console.log('Topic clicked:', topicName, 'current hidden:', subtopicsDiv.classList.contains('hidden'));
|
||||
subtopicsDiv.classList.toggle('hidden');
|
||||
console.log('After toggle, hidden:', subtopicsDiv.classList.contains('hidden'));
|
||||
};
|
||||
|
||||
subtopics.forEach(sub => {
|
||||
|
||||
Reference in new issue
Block a user