Closed Taitava closed 2 years ago
I suspect that this is the offending line:
https://github.com/Taitava/obsidian-shellcommands/blob/a6342f19146970ed66579923e2909e7fce29f83e/src/settings/setting_elements/Tabs.ts#L99
(The line accesses value
property and is located in a function named tab_button_clicked
, which matches with the console log message.)
But I do not know in which situation this bug happens. Probably after clicking a tab or icon, but what else is needed to trigger the bug...
I can reproduce this bug. It happens in shell commands extra options modal. I need to click different tabs many times in a row, and sometimes a click does not activate a tab, but records an error to the console instead. The reason is still a mystery.
It did not seem to happen in the main settings view of the SC plugin, but I can't be certain.
Mystery solved: I did a sustained firing of clicks and found a sweet spot: click an icon in a tab leaf and the bug occurs, because the application tries to access information from the clicked icon, not from the clicked tab leaf like it should. Happens both in the modal and in the main settings view.
Mystery solved: I did a sustained firing of clicks and found a sweet spot: click an icon in a tab leaf and the bug occurs, because the application tries to access information from the clicked icon, not from the clicked tab leaf like it should. Happens both in the modal and in the main settings view.
You are faster than me :)
I'm happy that you found the issue !!!!!!!
Fixed with a super tiny change by commit 7e60f3706b7c7e0c7a99cd54d6cca75edd1cf21b.
This issue was reported by @FelipeRearden in 0.7.0 beta discussion. The problem only occurs on 0.7.0 beta versions (beta2, but probably on beta1 too), not on any versions available via the normal Obsidian plugin installation process.