allow select widget class to update if it uses a filter and is output changes (#6987)
* allow select widget class to update if it uses a filter and the filter output changes * rewrite code to be more idiomatic + updates local property
This commit is contained in:
parent
6f98edd6bd
commit
cfd894e6fb
|
@ -175,6 +175,11 @@ SelectWidget.prototype.refresh = function(changedTiddlers) {
|
|||
return true;
|
||||
// If the target tiddler value has changed, just update setting and refresh the children
|
||||
} else {
|
||||
if(changedAttributes.class) {
|
||||
this.selectClass = this.getAttribute("class");
|
||||
this.getSelectDomNode().setAttribute("class",this.selectClass);
|
||||
}
|
||||
|
||||
var childrenRefreshed = this.refreshChildren(changedTiddlers);
|
||||
if(changedTiddlers[this.selectTitle] || childrenRefreshed) {
|
||||
this.setSelectValue();
|
||||
|
|
Loading…
Reference in New Issue