Refresh action widgets before invoking them

Fixes #2599, at least partially.
print-window-tiddler
Jermolene 2016-10-08 10:19:09 +01:00
rodzic c4e13bc94a
commit 641eeaf611
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -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)) {