Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

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

Re-Open
Will Liu asked on October 1, 2020

Hi,
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

https://jsfiddle.net/znj5ewLd/1/
For some reason I have to destroy and create flexmonster instance for multiple times within my single page application. 
 
Thanks,
Will

3 answers

Public
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.
 
Regards,
Illia

Public
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,
Illia

Public
Will Liu October 13, 2020

Thank you so much for the fix.

Please login or Register to Submit Answer