verbb / vizy

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

Dropdown in a Vizy block disappearing when nested in a super table field #279

Closed bleepsandblops closed 7 months ago

bleepsandblops commented 8 months ago

Describe the bug

I have a supertable field and within it a Vizy field type. I have several blocks within the Vizy field, and some of those blocks have dropdowns. If I move a block that has some dropdowns, the dropdowns disappear and i can see an error in the console:

Screenshot 2024-01-31 at 15 19 36

Before / After of the dropdowns disappearing:

Screenshot 2024-01-31 at 15 20 10 Screenshot 2024-01-31 at 15 19 44

I can send a db dump or project config if it makes things easier to debug.

Side issue: the dropdowns need padding between them.

Thank you!

Steps to reproduce

Cf above

Craft CMS version

4.7.1

Plugin version

2.1.15

Multi-site?

No

Additional context

No response

engram-design commented 8 months ago

I believe this has to do with how we have to re-initialize Selectize, being jQuery and Vizy is in Vue there's some complexity there.

Fixed for the next release. To get this early, run composer require verbb/vizy:"dev-craft-4 as 2.1.15".

engram-design commented 7 months ago

Fixed in 2.1.16