You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using Bootstrap v3.3.5 and I'm having some troubles using the dropdown menu and accessing to the dropdown events. According to documentation (http://getbootstrap.com/javascript/#dropdowns-events) all dropdown events (show, shown, hide and hidden) has a relatedTarget property to access the anchor that fired the event. It works perfect in show and hide events, but shows undefined in shown and hidden events.
Is there an error in the documentation or did you miss to put that property when the event was built?
PS: I'm using Windows 7 with Chrome 43.0.2357.132 m
EDIT: I've been checking all events objects through console.log(e) and they all have the same properties with exactly same values, only "timestamp" property is the one that is not the same in all event objects, and I found that hidden and shown events has not defined the relatedTarget property, but in the bootstrap.js file there is this piece code:
According to jQuery Event, the event never gets the relatedTarget parameter doing it like you did it. You need to call the jQuery Event to send the extra parameter.
Hi there!
Im using Bootstrap v3.3.5 and I'm having some troubles using the dropdown menu and accessing to the dropdown events. According to documentation (http://getbootstrap.com/javascript/#dropdowns-events) all dropdown events (show, shown, hide and hidden) has a relatedTarget property to access the anchor that fired the event. It works perfect in show and hide events, but shows undefined in shown and hidden events.
Is there an error in the documentation or did you miss to put that property when the event was built?
Here is an example of my code:
And their results:
Thanks in advance.
Regards,
Diego.
PS: I'm using Windows 7 with Chrome 43.0.2357.132 m
EDIT: I've been checking all events objects through console.log(e) and they all have the same properties with exactly same values, only "timestamp" property is the one that is not the same in all event objects, and I found that hidden and shown events has not defined the relatedTarget property, but in the bootstrap.js file there is this piece code:
relatedTarget is theorically sent, correct me if I'm wrong, in both hide events and the same where show events are thrown.
The text was updated successfully, but these errors were encountered: