grid-js / gridjs

Advanced table plugin
https://gridjs.io
MIT License
4.39k stars 240 forks source link

Global events not triggering in UMD version #1378

Closed morelandjo closed 6 months ago

morelandjo commented 1 year ago

Describe the bug Global events such as ready and load do not appear to be firing.

To Reproduce Steps to reproduce the behavior: Add a ready function with a console log output, reload the page, no result in log

const thegrid = new gridjs.Grid({ columns: [name: 'Test1,'Test2','Test3','Test4'], fixedHeader: true, height: '85vh', style: { th: { 'font-size': '14px', 'white-space': 'break-spaces' }, td: { 'font-size': '14px' } }, data: [1,2,3,4]}).render(document.getElementById('wrapper'));

thegrid.on('ready', () => console.log('test'));

Expected behavior I would expect these events, such as load and ready to fire at the appropriate time

Desktop (please complete the following information): Windows and Mac Chrome, Firefox, Safari

zpottie commented 1 year ago

Appears to be related to #1349?

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.