1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +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
if(child.invokeAction) {
child.refreshSelf();
if(child.invokeAction) {
if(child.invokeAction(triggeringWidget,event)) {
handled = true;
}