mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-11-17 20:34:28 +00:00
Refresh action widgets before invoking them
Fixes #2599, at least partially.
This commit is contained in:
1 parent
c4e13bc94a
commit
641eeaf611
1 file changed
+5
-2
@@ -493,8 +493,11 @@ 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.invokeAction(triggeringWidget,event)) {
|
||||
handled = true;
|
||||
if(child.invokeAction) {
|
||||
child.refreshSelf();
|
||||
if(child.invokeAction(triggeringWidget,event)) {
|
||||
handled = true;
|
||||
}
|
||||
}
|
||||
// Propagate through through the child if it permits it
|
||||
if(child.allowActionPropagation() && child.invokeActions(triggeringWidget,event)) {
|
||||
|
||||
Reference in new issue
Block a user