Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.x-dev
Component:
Toolbar App
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2017 at 16:03 UTC
Updated:
29 Mar 2017 at 16:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Jorrit commentedComment #3
Jorrit commentedComment #4
Jorrit commentedComment #5
mpotter commentedWhy would Firefox only "occasionally" report a problem. Seems like either it's a problem or it's not. It would be good to post a procedure for reproducing this problem so we can verify the fix.
Comment #6
Jorrit commentedSorry about my confusion wording. The warning is logged on each interaction with a popup powered by Bootstrap like the buttons for spaces in the header.
Comment #7
mpotter commentedI am not able to reproduce this in Firefox 50.1.0 on my Mac. You'll need to post step-by-step instructions for seeing this error. That data-target must have been added for a reason and I don't know if it's something left over from an older version of Bootstrap or if it is still needed for some reason. So without more understanding of this issue and it's underlying cause I can't just remove it.
Comment #8
Jorrit commentedIs there a publicly accessible demo site with an activated toolbar module?
Comment #9
mpotter commentedYou can spin up a free public Atrium site in less than 5 min at getpantheon.com/openatrium
Comment #10
Jorrit commentedThanks for the reference to that site. I created a site at http://dev-issue-2854597.pantheonsite.io/test-space. Login with test / testtesttest and go to http://dev-issue-2854597.pantheonsite.io/test-space. Hover the 'Test Space' text in the header. The message 'Empty string passed to getElementById().' will appear.
Comment #11
mpotter commentedMust still be a specific browser issue. I followed your procedure on that test site and using Firefox 50.1.0 on my Mac I did not see any error in the Console when I hover over "Test Space" in the header.
Comment #12
dpoletto commentedTried hovering the "Test Space" text in the header with Mozilla Firefox 51.0.1 (64 bit) for Linux and all seems quite normal (no issue so far).
Comment #13
Jorrit commentedI tried it again and the error appeared after clicking the text, not hovering. I have recorded a small video to demonstrate that it is not made up. If you still can't reproduce it, please close this issue because too much time has been spent on this minor thing already.
https://youtu.be/QF27CL_VVH4
Comment #14
dpoletto commentedSorry @Jorrit,
I re-tested now after watching the video you posted and I also noticed (It's a Java Script Warning not an Error!) that every time I hover in and I hover out the "Test Space" link Firefox logs a grandtotal of four (two when I enter, two when I left) consecutive Warnings "Empty string passed to getElementById()" (hovering few times will grow logged lines a lot); that Java Script Warning pops up after others two: "Use of getAttributeNode() is deprecated. Use getAttribute() instead." and "Use of getPreventDefault() is deprecated. Use defaultPrevented instead." those ones both show up when (and each time) the "Test Space" page is loaded.
Definitely not Java Script Errors...just Warnings.
Comment #15
Argus commentedYeah I can also reproduce the
Empty string passed to getElementById().with the latest Firefox on a Mac. This seems to be a known bootstrap-Firefox or jquery issue: Google it. But it doesn't appear in other browsers and doesn't interfere with the use of the site.To commit the patch we would need to verify if it doesn't introduce problems with other browsers...
Comment #16
Jorrit commentedThe
data-targetattribute is intended to bind a dropdown button to a specific dropdown. The value must be a valid CSS query, which#is not.data-targetis optional. If it is not a valid element, the default behavior is to toggle theopenclass on the parent element. This behavior is used by the toolbar menu. It does not need thedata-targetattribute to work.Comment #17
Argus commentedThat seems a logical explanation.
Comment #18
mpotter commentedTested this a bit and it seems ok. Based on the info above, I committed this to a113a59 in oa_toolbar.
Comment #19
Jorrit commentedThanks for reviewing and committing.