mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-06 20:12:49 +00:00
Refresh action widgets before invoking them
Fixes #2599, at least partially.
This commit is contained in:
parent
c4e13bc94a
commit
641eeaf611
@ -493,9 +493,12 @@ Widget.prototype.invokeActions = function(triggeringWidget,event) {
|
|||||||
for(var t=0; t<this.children.length; t++) {
|
for(var t=0; t<this.children.length; t++) {
|
||||||
var child = this.children[t];
|
var child = this.children[t];
|
||||||
// Invoke the child if it is an action widget
|
// Invoke the child if it is an action widget
|
||||||
if(child.invokeAction && child.invokeAction(triggeringWidget,event)) {
|
if(child.invokeAction) {
|
||||||
|
child.refreshSelf();
|
||||||
|
if(child.invokeAction(triggeringWidget,event)) {
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Propagate through through the child if it permits it
|
// Propagate through through the child if it permits it
|
||||||
if(child.allowActionPropagation() && child.invokeActions(triggeringWidget,event)) {
|
if(child.allowActionPropagation() && child.invokeActions(triggeringWidget,event)) {
|
||||||
handled = true;
|
handled = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user