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
This is kind of a known issue with Vizy, and it mostly comes down to how content (which is JSON) can differ compared to it coming from PHP into JS. We do try and mitigate this a little by having a change-detection flag that ensure that the Vizy field doesn't listen to anything changed until you click on it (as you've discovered).
It really depends on how complex your Vizy fields are as well. Nested Vizy fields with complex Craft-based fields like Matrix almost always have an issue when handling JSON-provided data, as their jQuery JS kicks in and starts making changes. This is also another related issue, where Tiptap (Vue) needs to play nicely with all the other fields out there, most of which Craft core ones use jQuery.
We did actually address this similar issue for Hyper lately. For example, just having something like:
{ "some-value: "3" }
In PHP, will be changed to:
{ "some-value: 3 }
In JS, particularly for Element fields, through their own JS, is enough to trigger a change has been made. In the linked Hyper commit, that's just one of the scenarios we deal with.
So while I'm happy to look at this specifically (I'll just need an example of your Vizy field setup and content), it's a somewhat issue that doesn't have a solution right now!
Describe the bug
If you click a Vizy, even if it's not an input field, it triggers a draft.
It seems to not be able to identify that nothing has changed.
If I save the page then it doesn't happen anymore... for a while? But it does come back and I'm not sure why.
Video: https://www.youtube.com/watch?v=MhVllbjxwbY
Steps to reproduce
Craft CMS version
Craft Pro 4.13.3
Plugin version
2.1.24
Multi-site?
NO
Additional context
The text was updated successfully, but these errors were encountered: