-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arctic admin causes JS errors in browser logs #66
Comments
|
hello @wachub , thank you for your response My dirty workaround, for then, was (in application.html.haml - head section):
As indeed, it broke some of my JS files, I do not remember what it was exactly (old times) but I think related to owl-carousel plugin or iziModal. |
Hi @michalzynek. Could you check out this pull request #75 . Unfortunately I understand very little of rails and I haven't heard of .haml files at all till now. So I am in no position to verify your solution. Anyway from the little that I do understand, i think your code simply says that the javascript tag should be included when the http request goes to admin. However I think all the activeAdmin js files are included for all http requests by default. |
@wachub in my example, the files were not only included on ActiveAdmin module - maybe that was a mistake of my configurations somewhere, but above Haml is simple HTML that says the JS files from ActiveAdmin should only be included under /admin path. UPDATE: I saw your PR, it may have fixed the error as I see you are checking the tabs existence. However, I am concerned about loading those files in locations different than ActiveAdmin engine |
Hi @michalzynek . AFAIK, this bug is a fairly low level one (syntax level), which is independent of the logic/algorithm on top. The only assumption made is that the width can be taken to be zero when the array is empty, which seems consistent for whatever is written on top. I don't think it is likely to blow up anywhere else. |
Pull-request : #84 Issue : Closes #66 Adaptation of the code of @vieditcom
I have error in browser console since I installed arctic admin:
And not only me I guess:
https://stackoverflow.com/questions/52857201/uncaught-typeerror-cannot-read-property-getboundingclientrect-of-undefined-on
The text was updated successfully, but these errors were encountered: