mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-04 07:34:07 +00:00
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;
|
return true;
|
||||||
// If the target tiddler value has changed, just update setting and refresh the children
|
// If the target tiddler value has changed, just update setting and refresh the children
|
||||||
} else {
|
} else {
|
||||||
|
if(changedAttributes.class) {
|
||||||
|
this.selectClass = this.getAttribute("class");
|
||||||
|
this.getSelectDomNode().setAttribute("class",this.selectClass);
|
||||||
|
}
|
||||||
|
|
||||||
var childrenRefreshed = this.refreshChildren(changedTiddlers);
|
var childrenRefreshed = this.refreshChildren(changedTiddlers);
|
||||||
if(changedTiddlers[this.selectTitle] || childrenRefreshed) {
|
if(changedTiddlers[this.selectTitle] || childrenRefreshed) {
|
||||||
this.setSelectValue();
|
this.setSelectValue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user