You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some minor bug fixes, including:
- BorisMoore/jsviews#444
linking of selected value on select element does not work
correctly with all jquery versions
- BorisMoore/jsviews#442
for tag with range and data-linked tr give error
when removing object from array
- BorisMoore/jsviews#440
linked tag property changed handler called when it shouldn't
- BorisMoore/jsviews#439
observable ev.data.observeAll helper broken when path is "*"
Small corrections or improvements to documentation
and some additional unit tests...
&&linkCtx.convert!==undefined){// data-link expression on <select> tag is the assign tag {:...}, not some other expression such as {on ...} (See https://github.com/BorisMoore/jsviews/issues/444)
1701
1702
var$elem=$(linkCtx.elem);
1702
1703
$elem.on("jsv-domchange",function(){
1703
1704
// If the options have changed dynamically under the select, we need to refresh the data-linked selection, using the new options
@@ -1950,8 +1951,10 @@ function callAfterLink(tag, ev, eventArgs) {
1950
1951
props=tag.cvtArgs(m,1);// array of bindFrom args/props
1951
1952
l=props.length;
1952
1953
while(l--){
1953
-
val=props[l];
1954
-
tag.setValue(val,l,m);
1954
+
// If the bound property or arg has not yet been set (e.g. during initial rendering),
1955
+
// or has been unset, because onUpdate is set to true, or if onUpdate is false,
1956
+
// but this particular bound arg/prop is being changed observably: call setValue()
if(tagCtx._bdVals){// If val is not undefined (or is coming from an observable change event), and is a value that was already returned, use stored value and don't call tag.setValue()
0 commit comments