Hello from Norway!
I am building a site for a customer and a re using the component Fabrik to build forms.
This is a well known and complex component thath i have used on many sites, both as a content builder and to make specialized forms.
Yesterday I discovered that none of my forms showed on the site ( the url is temporary url as we builod the site) and there is a error in Chrome (and Edge) :
Uncaught TypeError: Cannot read property 'addEvent' of null
at Object.watchGroupButtons (form.js:1833)
at Object.e.extend.$owner (fe6a51e3e7a211fa9d9532b1d34dde6c.js:7)
at Object.setUp (form.js:275)
at Object.e.extend.$owner (fe6a51e3e7a211fa9d9532b1d34dde6c.js:7)
at Object.setUpAll (form.js:111)
at Object.e.extend.$owner [as setUpAll] (fe6a51e3e7a211fa9d9532b1d34dde6c.js:7)
at Object.initialize (form.js:69)
at Object.<anonymous> (fe6a51e3e7a211fa9d9532b1d34dde6c.js:7)
at Object.e.extend.$owner [as initialize] (fe6a51e3e7a211fa9d9532b1d34dde6c.js:7)
at new <anonymous> (fe6a51e3e7a211fa9d9532b1d34dde6c.js:7)
I have used Fabrik with other Templates with no problem, but this new one is not working at all.
If I switch to the Joomla default template everything is okey.
The code in fabrik.js marked is:
this.form.addEvent('click:relay(.fabrikSubGroup)', function (e, subGroup) {
var r = subGroup.getElement('.fabrikGroupRepeater');
if (r) {
subGroup.addEvent('mouseenter', function (e) {
r.fade(1);
});
subGroup.addEvent('mouseleave', function (e) {
r.fade(0.2);
});
}
}.bind(this));
I guess this is a javascript conflict of some sort, and i have checked in Fabrik for debuging javascript, but it does not help.
I don't know if you can help, but I reckon that it is nice if you know of this bug/ error, because this can be something happening to other developers too, and also with other components.
Best regards, and hope somebody out there with some knowledge of javascript can help :-)
Grethe Bjornas,
Luculentus as
Norway