Comments (11)
Thanks for bringing this up, Brent. I'll look into it...
from jsviews.
Hi Brent, can you test whether this candidate fix works for you?
from jsviews.
Thanks Boris...
The fix does not work in my app; it still only works on whichever path is first.
I see see of course that it works in the test file ;-)
This is my actual code using view models:
$.observe(appVm,
"locations()^[].Address()",
"locations()^[].City()",
"locations()^[].State()",
"locations()^[].Zipcode()",
mobileAddressChange)
from jsviews.
Ah - interesting. Would you be able to provide me a small test example, with that pattern (or similar) observing view models? "locations()^[].Address()"
(It will save me a bit of time :-) )
from jsviews.
Actually, I may be able to use this sample as a starting point:
https://www.jsviews.com/#jsvviewmodelsapi@ismanagersample.
I'll look into it. (Unless it is easy/rapid for you to come up with a test sample...)
from jsviews.
Here is an example I threw quickly together...it looks like the view model is causing the problem...
In this example file: only the first "phones()^[]...."
works...even on initial rendering; never mind Add Phone...
$.observe(person,
"phones()^[].number()",
"phones()^[].ext()"
, changeHandler);
from jsviews.
Excellent. Thanks!,
from jsviews.
Hi Brent, here is a candidate, for you to test in your environment.
from jsviews.
This fix works...Thank you Boris!
from jsviews.
Good.
These were in fact two different issues:
"phones^[].number", "phones^[].ext"
and
"phones()^[]
...
Thanks for calling them out!
from jsviews.
Resolved, and included in commit v1.0.14
from jsviews.
Related Issues (20)
- linked tag property changed handler called when it shouldn't HOT 51
- {{for ..}} emits <tr> and <td> tags HOT 1
- for tag with range and data-linked tr give error when removing object from array HOT 5
- Delimiters not working for "[ " and " ]" HOT 2
- linking of selected value on select element does not work correctly with all jquery versions HOT 5
- jsrender.min.js.map truncated HOT 6
- Observable change error, when loading jquery.observable.js before jsrender.js, and using contextual parameters and sorted {{for}} HOT 6
- removeView performance HOT 2
- $.observe/$.unobserve performance degradation over time HOT 5
- If the selected value of a data-linked <select> is set prior to adding options, selection is not always established correctly HOT 3
- multiselect not updating when linked array changes HOT 10
- Binding to computed functions: onBind callback called twice. If computed function has no setter , "... is not a function" exception thrown HOT 6
- html comments not working in tables HOT 4
- performance improvement in JsObservable HOT 2
- Formatting a number in data-link ? HOT 2
- Using a tmpl selector that begins with a # but is not an ID selector does not work HOT 5
- Top-level data-link="{for...}" does not work on a 'select' element HOT 3
- LinkTo not refreshing DOM on empty value HOT 5
- Checkboxgroup enhancement and oldValue issue HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsviews.