Get Free Trial

re-creating flexmonster instance on the same page results in javascript errors

Will Liu asked on October 1, 2020

When I create a new flexmonster instance after I dispose an old one on the same page, an error `Cannot read property ‘length’ of null` is thrown on window resizing.
Steps to replicate:

  • dispose an existing flexmonster instance
  • on the same page then create a new flexmonster with toolbar:true
  • resize the window
For some reason I have to destroy and create flexmonster instance for multiple times within my single page application. 

3 answers

Illia Yatsyshyn Illia Yatsyshyn Flexmonster October 2, 2020

Hello, Will,
Thank you for reporting the problem and for providing the JSFiddle.
The fix is going to be provided with the nearest minor update ETA Oct 05.
Our team will notify you as soon as the version with a fix is available to download.
Do not hesitate to contact us in case other questions arise.

Illia Yatsyshyn Illia Yatsyshyn Flexmonster October 6, 2020

Hello, Will,
We are happy to let you know that the issue with resizing the window after the component disposal was fixed.
This is provided in the 2.8.17 version of Flexmonster.
You are welcome to update the component.
Here is our updating to the latest version tutorial for guidance.
Please let us know if everything works.
Best Regards,

Will Liu October 13, 2020

Thank you so much for the fix.

Please login or Register to Submit Answer