verbb / vizy

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

Change not detected in dropdown menu until you click out #305

Open bleepsandblops opened 1 month ago

bleepsandblops commented 1 month ago

Describe the bug

For a Vizy block that contains a dropdown, you need to click outside the dropdown select to make the entry register the change. You can see in the video below the blue bar next to the Vizy field only appears once I've clicked out: https://github.com/user-attachments/assets/7b5b08d9-db96-452b-a099-1ab6e96bf801

So if you just change the dropdown and then save the entry, that change is not registered. If you change then click out, then save the entry, it's registered.

Steps to reproduce

See above

Craft CMS version

5.2.8

Plugin version

3.0.1 (dev-craft-5)

Multi-site?

No

Additional context

No response

engram-design commented 1 month ago

Pretty sure this is because the Dropdown (Selectize) component messes with our mousedown event, which is there to detect when to start listening for changes or not. If you click on the Vizy block beforehand (anywhere but the dropdown), that'll also work. Just clicking directly on the dropdown, or selecting an option will not work. Looking into options.