Closed nirewen closed 1 week ago
When clicking on an item in the field guide, the wiki page opens up every time.
The bug is caused because it's not checked on the click handler of the anchor element, whether the option to View Source is enabled.
Check if the viewingSource boolean has been toggled (from the button on the top) when running the checkViewSource function of the component.
viewingSource
checkViewSource
I must've been pretty sleepy while writing this code to have forgotten that. Thank you very much for the fix!
Bug description
When clicking on an item in the field guide, the wiki page opens up every time.
Root cause
The bug is caused because it's not checked on the click handler of the anchor element, whether the option to View Source is enabled.
Solution
Check if the
viewingSource
boolean has been toggled (from the button on the top) when running thecheckViewSource
function of the component.