-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Dropdown clickHandlerTypeError #114
Comments
Cannot reproduce. Do you have a screenshot? |
Using the Fixed Navbar Example for the v4 version of bootstrap, if you had a dropdown on that page and clicked under the The requested image with the area i'm talking about highlighted in a thin red border w/ some text in it. Does that help? |
No. The script won't initialize if you inject it on the Bootstrap demo pages on the fly, you need to have it there when the DOM is parsed. This is something jQuery does, we don't do that, we do it the right way:
|
Please download latest master and test. Thank you. |
@KuroThing all good? |
Same here, using the master version solved the problem. Thanks guys! |
I'm still having this error. It can be reproduced doing what @KuroThing said above: in your own documentation (http://thednp.github.io/bootstrap.native), add an absurd height property to the body element, and scroll to the bottom of the page. Open the dev console and go to the inspect area, insure you are over the body element and click a few times. You'll get the error. |
OK now, please check the latest master, if we come clean, we publish the new version to the clouds right after. |
I'm using Aurelia with this library, which makes use of document fragments quite a bit. When a fragment is the parent node, this error occurs. The latest push to master fixes the issue for me, @thednp. Cheers! |
When you click the the
body
element, this line of code produces this error:TypeError: eventTarget[parentNode][getAttribute] is not a function
Tested on v2.0.3 and v2.0.4 (Commit: cf981a6)
A (imo) dirty hack i found to solve this would be to do something like
typeof eventTarget[parentNode] === HTMLDocument
and if so, settinghasData
to false.Edit: It should be noted that this error occurs irrelevant of if the dropdown is open or not.
The text was updated successfully, but these errors were encountered: