Giter Site home page Giter Site logo

Comments (11)

BorisMoore avatar BorisMoore commented on September 1, 2024

Thanks for bringing this up, Brent. I'll look into it...

from jsviews.

BorisMoore avatar BorisMoore commented on September 1, 2024

Hi Brent, can you test whether this candidate fix works for you?

jsviews.js.txt

from jsviews.

alnico2001 avatar alnico2001 commented on September 1, 2024

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.

BorisMoore avatar BorisMoore commented on September 1, 2024

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.

BorisMoore avatar BorisMoore commented on September 1, 2024

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.

alnico2001 avatar alnico2001 commented on September 1, 2024

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);

test_jsviews_observVM.txt

from jsviews.

BorisMoore avatar BorisMoore commented on September 1, 2024

Excellent. Thanks!,

from jsviews.

BorisMoore avatar BorisMoore commented on September 1, 2024

Hi Brent, here is a candidate, for you to test in your environment.

jsviewsIssue459b.js.txt

from jsviews.

alnico2001 avatar alnico2001 commented on September 1, 2024

This fix works...Thank you Boris!

from jsviews.

BorisMoore avatar BorisMoore commented on September 1, 2024

Good.
These were in fact two different issues:
"phones^[].number", "phones^[].ext"
and
"phones()^[]...

Thanks for calling them out!

from jsviews.

BorisMoore avatar BorisMoore commented on September 1, 2024

Resolved, and included in commit v1.0.14

from jsviews.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.