After updating from Joomla 3.10.11 with Fabrik 3.10 to Joomla 4 with the Fabrik beta4 zip I find I cannot edit any element that has javascript code for form field event processing.
When you edit such a file, browser debugger shows:
Uncaught TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at Object.getDataAttributes (dom.min.js?5.1.3:1:9635)
at Popover._getConfig (popover.min.js?5.1.3:1:9802)
at new Tooltip (popover.min.js?5.1.3:1:2384)
at new Popover (popover.min.js?5.1.3:1:11987)
at Popover.getOrCreateInstance (dom.min.js?5.1.3:1:8526)
at HTMLDocument.<anonymous> (popover.min.js?5.1.3:1:12546)
at Function.each (jquery.min.js?3.6.0:2:3003)
at S.fn.init.each (jquery.min.js?3.6.0:2:1481)
at S.fn.init.jQueryInterface [as popover] (popover.min.js?5.1.3:1:12513)
And when you try to save the element browser debugger shows:
index.php?option=com_fabrik&view=element&layout=edit&id=18:222 Uncaught TypeError: Cannot read properties of undefined (reading 'canSaveForm')
at index.php?option=com_fabrik&view=element&layout=edit&id=18:222:56
at Object.execCb (<anonymous>:29:311)
at $.check (<anonymous>:18:423)
at $.enable (<anonymous>:23:238)
at $.init (<anonymous>:17:54)
at <anonymous>:26:369
Any changes made to the element are not saved.
Further, if you create a new list and with a new field in J4, as soon as you add some javascript code for a field event, the same problem occurs.
When you edit such a file, browser debugger shows:
Uncaught TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at Object.getDataAttributes (dom.min.js?5.1.3:1:9635)
at Popover._getConfig (popover.min.js?5.1.3:1:9802)
at new Tooltip (popover.min.js?5.1.3:1:2384)
at new Popover (popover.min.js?5.1.3:1:11987)
at Popover.getOrCreateInstance (dom.min.js?5.1.3:1:8526)
at HTMLDocument.<anonymous> (popover.min.js?5.1.3:1:12546)
at Function.each (jquery.min.js?3.6.0:2:3003)
at S.fn.init.each (jquery.min.js?3.6.0:2:1481)
at S.fn.init.jQueryInterface [as popover] (popover.min.js?5.1.3:1:12513)
And when you try to save the element browser debugger shows:
index.php?option=com_fabrik&view=element&layout=edit&id=18:222 Uncaught TypeError: Cannot read properties of undefined (reading 'canSaveForm')
at index.php?option=com_fabrik&view=element&layout=edit&id=18:222:56
at Object.execCb (<anonymous>:29:311)
at $.check (<anonymous>:18:423)
at $.enable (<anonymous>:23:238)
at $.init (<anonymous>:17:54)
at <anonymous>:26:369
Any changes made to the element are not saved.
Further, if you create a new list and with a new field in J4, as soon as you add some javascript code for a field event, the same problem occurs.