Skip to content
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

Polymer Tutorial step 1 multiple core-select events #578

Closed
timcash opened this issue Jun 29, 2014 · 3 comments
Closed

Polymer Tutorial step 1 multiple core-select events #578

timcash opened this issue Jun 29, 2014 · 3 comments

Comments

@timcash
Copy link

timcash commented Jun 29, 2014

for step one of the polymer tutorial (http://www.polymer-project.org/docs/start/tutorial/step-1.html) when I click a tab I get two 'core-select' events and two console.log("Selected: " + tabs.selected); for each click.

"dependencies": {
"polymer": "Polymer/polymer#~0.3.3",
"core-elements": "Polymer/core-elements#~0.3.3",
"paper-elements": "Polymer/paper-elements#~0.3.3"
}

@robdodson
Copy link
Contributor

This is actually expected behavior. One of the events is coming from the deselected element and one is coming from the newly selected element. You can check the isSelected attribute of the event to determine the selected state of the dispatcher. We need to update this in the tutorial.

@timcash
Copy link
Author

timcash commented Jul 1, 2014

Well that makes sense =). Thanks for the fast reply!

@timcash timcash closed this as completed Jul 1, 2014
@robdodson
Copy link
Contributor

cc @arthurevans can we update this bit of the tutorial? I was initially confused by it as well :D

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

No branches or pull requests

2 participants