- Issue created by @doxigo
- Status changed to Needs review
about 1 year ago 7:38am 30 November 2023 - Status changed to Needs work
about 1 year ago 9:08am 30 November 2023 - 🇳🇴Norway eiriksm Norway
That makes sense, awesome.
However, I don't think this can be the case for a simple out of the box experience. I can not reproduce it, at least. I guess it happens when you have another JS file that in a similar manner pollutes the global scope with the global variable "block"?
Can you update the issue summary with exact steps to reproduce on a vanilla drupal install?
Also, I think it would be nice to have a test for this. Are you able to code up something like that? Or do you need some help? 🤓️✌️ Thanks for the quick reply Eirik, I appreciate it 🙌
I tried again to recreate the issue on a brand new D10 installation, and couldn't. It must've been something on my own project which has tons of custom blocks/etc...
Regardless, I suppose it doesn't hurt to contain the scope
and I definitely need help for the tests, thanks 🤩
- First commit to issue fork.
- 🇳🇴Norway eiriksm Norway
@doxigo: Here is an example repo that you can use as a starting point to write some tests: https://github.com/frontkom/drupal-contrib-ddev
Hope that gets you going? Otherwise happy to help out with more info or guidance ✌️