Update link-widget refresh method (#6013)

* update link-widget refresh method

* update link-widget refresh method
This commit is contained in:
Simon Huber
2021-10-27 11:37:08 +01:00
committed by GitHub
parent 23b4e03cd5
commit a0d2392f01
+2 -1
View File
@@ -207,7 +207,8 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
*/
LinkWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.to || changedTiddlers[this.to] || changedAttributes["aria-label"] || changedAttributes.tooltip) {
if(changedAttributes.to || changedTiddlers[this.to] || changedAttributes["aria-label"] || changedAttributes.tooltip ||
changedAttributes["class"] || changedAttributes.tabindex || changedAttributes.draggable || changedAttributes.tag) {
this.refreshSelf();
return true;
}