verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

Error when using dismissable tip UI element #235

Open d-karstens opened 1 year ago

d-karstens commented 1 year ago

Describe the bug

Hi,

We've encountered a bug where a block doesn't display properly if it contains a dismissable tip UI element

I've attached screenshots of our field setup and the js error shown my browser console

Screenshot 2023-06-23 at 9 55 50 am Screenshot 2023-06-23 at 9 58 16 am

Steps to reproduce

  1. Create a block with a tip UI element that has the dismissable option ticked
  2. Try to add the block in an entry

Craft CMS version

4.4.14

Plugin version

2.1.6

Multi-site?

No

Additional context

No response

engram-design commented 1 year ago

Yes, that's a tricky one, because it's outputting <script> tags inline with content, which will throw an error in Vue. Fields handle this is a particular way, so I'll need to do some digging to see what we can do for UI elements.