neon-animation icon indicating copy to clipboard operation
neon-animation copied to clipboard

iron-activate not fired on neon-animated-pages

Open jarrodek opened this issue 9 years ago • 2 comments

The neon-animated-pages do not fire iron-activate when selected property change.

Expected outcome

When the selection for neon-animated-pages change on-iron-activate handler should be called.

Actual outcome

Nothing happens.

Steps to reproduce

  1. Code similar to PSK index.html page but iron-pages is replaced with neon-animated-pages:
<template is="dom-bind" id="app">
  <neon-animated-pages id="pages" on-iron-activate="_testEvent" on-iron-deselect="_testEvent" on-iron-select="_testEvent" attr-for-selected="data-route" selected="[[route]]">
    <neon-animatable data-route="a">A</neon-animatable>
    <neon-animatable data-route="b">B</neon-animatable>
  </neon-animated-pages>
</template>

In app.js:

let app = document.querySelector('#app');
app._testEvent = function(e, b) {
    console.log(e.type, e, b);
};
  1. Change route value to a or b:
document.querySelector('#app').route = 'a';
  1. You'll see only two events In the console: iron-deselect and iron-select. But no iron-activate. Since - according to docs - iron-activate is the only event that can be canceled it is crucial to have it working.

jarrodek avatar Jan 18 '16 23:01 jarrodek

If I am not mistaken, the iron-activateevent is only fired when the selection came from the activateEvent, the doc of IronSelectableBehavior is just not clear about that.

Zecat avatar Aug 07 '16 10:08 Zecat

Right now it's only possible to use on-iron-select or on-iron-deselect due to the described bug above. Is there a schedule for this bug fix?

dominik0711 avatar Nov 09 '16 14:11 dominik0711