-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with field.watch #378
Comments
Hello, I confirm platform: { type: Types.Select, options: 'node, ruby, python' },
usesKeystone: { type: String, watch: 'platform', value: testup},
...
var testup = function() {
return "3";
} Does the field watching occurs at the UI level when using a string for the watch entry of the Field definition? |
When is a fix for this expected? |
This is working for me, except it is actually watching the field above the "watched" field. This is what my model looks like:
Updating the "integration" field does nothing, but updating the "source" field will cause the lastUpdated field to be updated. |
@DerekDomino it happens server-side, thanks to @kraigh that's really weird behaviour, hopefully it'll help me track down the issue. @Ventis I'll try and tackle this one soon, I'd really like to fix it. If anyone else can dive in and help me figure out what's going wrong that'd be great, the relevant code is here: https://github.com/JedWatson/keystone/blob/master/lib/field.js#L79 |
Just to make this bug report complete: |
@JedWatson still looking into the issue, but saw that at least for Edit: Ok was an easy fix :P Will see if I can fix the rest and send a PR |
Thanks @Globegitter! I've merged that, and will push it in a new version to npm soon. |
As reported on the google group here: https://groups.google.com/forum/#!topic/keystonejs/snCB2F_KcVU
I am trying to use the watch feature and can not get it to watch another field.
This works:
If I try and watch the totalreceived field it does not work
The text was updated successfully, but these errors were encountered: