Closed bleepsandblops closed 1 year ago
Yep, setTimeout
was always a dodgy stop-gap. Fixed for the next release. To get this fix early, change your verbb/vizy
requirement in composer.json
to:
"require": {
"verbb/vizy": "dev-craft-4 as 2.0.4",
"...": "..."
}
Then run composer update
.
Thanks for your quick reaction @engram-design that seems fine now!
Fixed in 2.0.5
Describe the bug
If I create a new entry for which the default entry type does not have a Vizy field, then switch the entry type to one that does have a Vizy field, the Vizy field is hidden:
and in the console I see this:
which refers to this line:
setTimeout(function() { new Craft.Vizy.Input("fields-contentVizy", "fields[contentVizy]"); }, 200);
If I then manually run that line in the console it works and the field appears! So this makes me think this timeout is a bit dodgy and is too short.
Steps to reproduce
Craft CMS version
4.2.0.2
Plugin version
2.0.4
Multi-site?
No
Additional context
If I open the entry after, the field is displaying correctly.