You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since two clicks are listened to, two help pages will open when the help button is clicked.
src\public\app\widgets\shared_switch.js : this.$helpButton.on('click', e => utils.openHelp($(e.target)));
src\public\app\services\utils.js: initHelpButtons
I'm not sure that removing which listen is the better solution.
Additionally, the missing import caused the help for template_switch to open only one page: the file src/public/app/widgets/template_switch.js is missing the import statement import utils from "../services/utils.js";, which results in the template_switch help opening only a single help page.
Error logs
No response
The text was updated successfully, but these errors were encountered:
I can still consistently reproduce this issue on the latest develop branch using Firefox on Windows. You need to click the question mark next to 'share.'
Clicking the question mark next to 'template' only opens one page due to another bug.
Interestingly, only one help page opens in Edge, but window.open(url, '_blank'); in Notes\src\public\app\services\utils.js is indeed called twice. This might be due to a security mechanism in Edge that only allows one page to open within a short time frame.
I've identified the cause of the issue: one instance is listening to the question mark button, and the other is listening to $(window).
I feel that listening on $(window) might affect performance, as each click requires bubbling, but it's more convenient since it doesn’t require setting a listener for each question mark button. So, it’s a tough choice.
TriliumNext Version
0.90.10
What operating system are you using?
Windows
What is your setup?
Local (no sync)
Operating System Version
windows
Description
Since two clicks are listened to, two help pages will open when the help button is clicked.
this.$helpButton.on('click', e => utils.openHelp($(e.target)));
initHelpButtons
I'm not sure that removing which listen is the better solution.
Additionally, the missing import caused the help for
template_switch
to open only one page: the filesrc/public/app/widgets/template_switch.js
is missing the import statementimport utils from "../services/utils.js";
, which results in thetemplate_switch
help opening only a single help page.Error logs
No response
The text was updated successfully, but these errors were encountered: