Closed vodnicearv closed 2 weeks ago
That's strange the error suggests the iframe is missing from the page. Anyway I've changed how I check iframe.title
and added a check that the iframe is actually there, so this should hopefully be fixed in v5.1.2. which has just been published.
If it is still an issue, can you please make me a test page, as I'm unable to repro this.
I'm new to Vue, so would love any feedback on how you think the Vue component could be improved.
thanks @davidjbradshaw ! you are awesome
I'm still a bit confused by this, as you got that error 27 times, but that code is only called when you load a page into the iframe.
Does your site use a lot of pages in the iframe? Or is maybe Vue doing something I'm not expecting?
no, I load only 1 page in iframe
Sometime we received this error: index.esm.js:20 Uncaught (in promise) TypeError: Cannot destructure property 'title' of 'document.getElementById(...)' as it is null.
Screenshots
Desktop (please complete the following information):
Version @iframe-resizer/vue: ^5.1.0
Our code: