calls to getBoundingClientRect on init script (if no width is given) should be guarded to check for element existence first
Closed this issue · 1 comments
benib commented
Guard the calls to getBoundingClientRect here:
- https://github.com/nzzdev/Q-chart/blob/dev/routes/rendering-info/web.js#L195
- https://github.com/nzzdev/Q-chart/blob/dev/routes/rendering-info/web.js#L201
with an if clause checking if element is available first.
This should be done so we do not throw errors if Q element is not available in the DOM at the time of script execution. This happens when the graphic is not shown because Registrationwall is visible.