nasrul
October 22, 2023, 5:34am
1
hello @johnny
I’ve just updated Grocery to version 3.0.14,
and I’ve found that all JavaScript events are not working.
this is my script
window.addEventListener(‘gcrud.datagrid.ready’, () => {
console.log(‘datagrid ready triggered’);
});
this is my console showing
I also tried to add and edit, but it didn’t trigger anything in the console log.
Thank you.
johnny
October 22, 2023, 6:10am
2
Hello @nasrul ,
You need to make sure that the configuration “publish_events” is equal to true
which the default is false
.
Can you please try to change that and let me know if you are still having issues?
Regards
Johnny
nasrul
October 22, 2023, 8:03am
3
hello @johnny
You are right, Johnny.
Everything is now running normally.
Thank you very much for your quick response.
Perhaps the documentation can be added.
regards
Nasrul
johnny
October 22, 2023, 8:30am
4
No problem @nasrul ,
Didn’t realise that it is not in the documentation page. I will add it asap.
Regards
Johnny