Skip to content

Polymer Tutorial step 1 multiple core-select events #578

Description

@timcash

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"
}

Activity

  1. robdodson commented on Jun 30, 2014

    @robdodson
    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.

  2. timcash commented on Jul 1, 2014

    @timcash
    Author

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

  3. robdodson commented on Jul 1, 2014

    @robdodson
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions