mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 11:00:27 +00:00
Refresh action widgets before invoking them
Fixes #2599, at least partially.
This commit is contained in:
parent
c4e13bc94a
commit
641eeaf611
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user