Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bleepsandblops opened this issue Jul 29, 2024 · 2 comments
Open

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

bleepsandblops opened this issue Jul 29, 2024 · 2 comments

Comments

@bleepsandblops
Copy link

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
Copy link
Member

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.

@bleepsandblops
Copy link
Author

@engram-design this seems to be fixed in latest release for dropdowns, but I've now noticed the bug with an entry field if you just remove an entry. If you add one it detects the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants