- Issue created by @JCL324
- Merge request !12Issue-3479245-js-warning-about:Fixed JS Warning About Not Enough Slides → (Closed) created by Unnamed author
- 🇮🇳India kulpratap2002
I have generated MR, Kindly check it.
No Warning after that.
- 🇳🇱Netherlands nk_
Thanks. I thought it was safer to do make this logic in PHP, so I placed a few lines of code in the module to not even initialize swiper but do inform (status warning) user about it.
Note that this is only in 1.0.x-dev version for now. For 2.0.x will come soonest - 🇮🇳India Tirupati_Singh
Hi @nk, I've tested the mentioned issue on 2.0.x-dev and when the number of slide is less than 2 getting a warning message as shown in the attached screenshot when saving/updating the node. And confirm that the changes are working fine, did not get any console errors when the slider has only one slide. I'm attaching the screenshot for your reference. As the changes are working fine moving the issue to RTBC.
Thanks!
- Assigned to bbu23
- Status changed to Fixed
12 days ago 2:08pm 10 December 2024