Add current element and event as params to clicked callback
This commit is contained in:
parent
e3a9830507
commit
ff676333d0
1 changed files with 3 additions and 2 deletions
|
@ -171,10 +171,11 @@ class GitLabDropdown
|
|||
selector = ".dropdown-page-one .dropdown-content a"
|
||||
|
||||
@dropdown.on "click", selector, (e) ->
|
||||
selected = self.rowClicked $(@)
|
||||
$el = $(@)
|
||||
selected = self.rowClicked $el
|
||||
|
||||
if self.options.clicked
|
||||
self.options.clicked(selected, e)
|
||||
self.options.clicked(selected, $el, e)
|
||||
|
||||
# Finds an element inside wrapper element
|
||||
getElement: (selector) ->
|
||||
|
|
Loading…
Reference in a new issue