I have…
- [ ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
I am using the custom editor documentation here
When I call editor.valueChanged({[new json]})
to inform Squidex that the value has changed, the value is updated in backend, but the editor-sdk never receives the valueChanged
event (and so my onValueChanged()
callback is never called (after initially being called on first load).
It’s weird because the formValueChanged
message is successfully seen by the editor-sdk when I call editor.valueChanged
, but the valueChanged
message is never seen.
Expected behavior
After calling editor.valueChanged
, editor
should receive valueChanged
message from parent as an acknowledgement that the value was successfully changed.
Minimal reproduction of the problem
Set up a custom editor on a JSON field, do var editor = new SquidexFormField()
, setup an onValueChanged
callback with simple console log, call editor.valueChanged({})
. You will see that callback is never called.
Environment
- [ ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [x] Cloud version
Version: Current
Browser:
- [x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge