Open SergioAugustoPeralta opened 5 years ago
Hi, @SergioAugustoPeralta! Thank you for using our products. I just tested on the windows laptop and on our live preview everything it's working fine without any error received. You are sure you haven't made any changes in the javascript files?
Regards, Dragos
The error occurs when you rename (the modal ID)/remove once of the three modals.
I hope you can fix this.
Hi, @fajartaufik! Please, can you be more specific about the issue?
Regards, Dragos
Hi, @fajartaufik! Please, can you be more specific about the issue?
Regards, Dragos
Hi Dragos, There are 3 modals in the notification page for example (noticeModal, myModal, myModal10), you can try to rename myModal with myModal1, then you refresh the page and click the notice modal button
.
Hi! Please be sure that you use the latest version of the product. Have you set also the new id from the modal to the data-target
attribute from the button.
Regards, Dragos
The page I showed earlier (gif file) is a new copy of the latest version (1.4.1).
I didn't change anything, I want to show you how that error occurred, so I changed the modal ID (one of three modal ID).
Open the modal it opens normal, or the problem is when will close the error that puts above.
@fajartaufik have you tried to put the new id name also in the data-target
attribute of the button that you click on it?
Regards, Dragos
Yes, I have, the issue is not in data-target attribute of the button, I think there are something wrong in your code.
Have you tried on your side what I have done?
You can reproduce the issue by removing 2 modals (myModal and myModal10) and leaving noticeModal, after that refresh the page and then click noticeModal button. My Conclusion is, on my side, all modals should be there, you can not remove/rename them (even though I don't need it).
Maybe the problem is here. There is no length detector for this. Thats why you can't remove the modal div from html file
Hi @young-altair, maybe that's the problem, let's @dragosct10 to investigate and fix this error.
Hi, @fajartaufik! Sorry for the late response. Please see here the video that I recorded for you to see that on our live preview everything is working fine without any error. Please be sure that when you upgraded your product you also imported also the js file from the new version.
Regards, Dragos
Hi @dragosct10 please rename the modal id in your demo files (e.g id="myModal" to id="testModal")
Hi! When you change the name of the modal you must go and change also in the js file the name. This is not so good and on the next update, we will fix it.
Regards, Dragos
@dragosct10 That's what I mean from the first explanation.
Hi! Yes, you're right. You go in the js file and replace those ids with only the class .modal
and then you can use any id that you want for your modals.
Regards, Dragos
Hi @dragosct10 , Perfect, thank you for your support.
Hello @dragosct10 i can't open modal in now ui dashboard angular
Hi, @maroua2020dev! Thank you for using our products. Please use the correct repo and open the issue there, this is the HTML PRO version product.
Regards, Dragos
Hello, Okay si my issue it's i can't add bootstrap modal and open it just by data target.. I can't use bootstrap normally in this template and it's urgently
Thanks
Le mar. 7 avr. 2020 à 08:57, dragosct notifications@github.com a écrit :
Hi, @maroua2020dev https://github.com/maroua2020dev! Thank you for using our products. Please use the correct repo and open the issue there.
Regards, Dragos
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/creativetimofficial/ct-now-ui-dashboard-pro/issues/69#issuecomment-610236787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3YUCGTD4EQGODQ6WVWDX3RLLMEZANCNFSM4IOI4WGQ .
now-ui-dashboard-pro-v.1.4.1
I am trying to use modal and sow the following error:
perfect-scrollbar.jquery.min.js:6 Uncaught Error: no element is specified to initialize PerfectScrollbar at new H (perfect-scrollbar.jquery.min.js:6) at HTMLDivElement. (now-ui-dashboard.min.js?v=1.4.1:1)
at HTMLDivElement.dispatch (jquery.min.js:2)
at HTMLDivElement.y.handle (jquery.min.js:2)
at Object.trigger (jquery.min.js:2)
at HTMLDivElement. (jquery.min.js:2)
at Function.each (jquery.min.js:2)
at w.fn.init.each (jquery.min.js:2)
at w.fn.init.trigger (jquery.min.js:2)
at o.t.show (bootstrap.min.js:6)