parallaxinc / solo

BlocklyProp without the wires
MIT License
6 stars 6 forks source link

Null error when attaching event handler to HTML element #739

Closed zfi closed 1 year ago

zfi commented 1 year ago

The console is reporting the following error when loading in version 1.7.0.249

index.bundle.cfc2127a6488d11d1d91.js:39058 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    at initEventHandlers (index.bundle.cfc2127a6488d11d1d91.js:39058:7)
    at HTMLDocument.<anonymous> (index.bundle.cfc2127a6488d11d1d91.js:38815:3)

The code construct is similar to this:

  document.getElementById('save-as-board-btn1')
      .addEventListener('click', () => {
      [ . . . ]
    }
zfi commented 1 year ago

Fixed in v1.7.0.249.