1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Refresh non-action widgets before invoking them

Fixes #5744
This commit is contained in:
jeremy@jermolene.com 2021-06-01 09:28:04 +01:00
parent 652e8b1262
commit 582b156d5f

View File

@ -570,8 +570,8 @@ Widget.prototype.invokeActions = function(triggeringWidget,event) {
for(var t=0; t<this.children.length; t++) {
var child = this.children[t];
// Invoke the child if it is an action widget
child.refreshSelf();
if(child.invokeAction) {
child.refreshSelf();
if(child.invokeAction(triggeringWidget,event)) {
handled = true;
}