Skip to content

Pass selected node to event - #16816

Closed
ghost wants to merge 1 commit into
gh-pagesfrom
unknown repository
Closed

Pass selected node to event#16816
ghost wants to merge 1 commit into
gh-pagesfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jan 9, 2016

Copy link
Copy Markdown

Passing just text is good but passing the entire element allow more flexibility, i.e. one can know on what link user clicked

Passing just text is good but passing the entire element allow more flexibility, i.e. one can know on what link user clicked
@TxHawks

TxHawks commented Jan 9, 2016

Copy link
Copy Markdown
Contributor

@sleewoo -
The selected node is already passed as of #16794, sort of. The original event is passed through the originalEvent property (see here), which allows you to look at originalEvent.target

However, there is a bug, because it is only passed when an item is selected using a mouse, not the keyboard. #16795 fixes this, but have not been accepted yet.

@ghost

ghost commented Jan 9, 2016

Copy link
Copy Markdown
Author

thanks, somehow missed originalEvent,
hoping your fix will be accepted soon.

@ghost ghost closed this Jan 9, 2016
@ghost
ghost deleted the patch-1 branch January 9, 2016 17:51
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants