I had the keypress bound to "document" rather than "this" which seems to have resolved the <pressing> issue. Pun intended.
On Monday, November 3, 2014 12:48:44 PM UTC-7, [email protected] wrote: > > Thanks for the quick response! > I should have been more specific. I'm seeing the issue with nesting of > core-pages. > As a use case, take the excellent Single Page App demo > <https://www.polymer-project.org/articles/demos/spa/final.html#one> for > example and put some paper-tabs around it so that you have a core-scaffold > in each tab. As one changes from tab to tab, the core-selected and active > attributes follow the parent level but the state of an element on each > nested core-scaffold does not change.... only the parent (core-tab). > Whichever element was selected on the nested element remains selected > (core-selected and active) even though it's no longer in view. A keystroke > bound on an element that is not visible, will still work as its nested > state is still selected and active. > > > > On Monday, November 3, 2014 11:27:33 AM UTC-7, Eric Bidelman wrote: >> >> By default, core-pages applies an `active` attribute and a >> class="core-selected" to the selected page. >> >> Example: https://remote.modern.ie/subscribe >> >> On Mon, Nov 3, 2014 at 9:53 AM, <[email protected]> wrote: >> >>> Is there a way to determine the visibility of a Polymer element in a >>> single page app? >>> My use case is using core-pages with nested elements representing >>> different sections of my app in a single page app and I need to determine >>> if a Polymer element is visible to the user. >>> >>> Follow Polymer on Google+: plus.google.com/107187849809354688692 >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Polymer" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/polymer-dev/d2a9bd20-d78d-4cfc-b190-c11dd0964649%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/polymer-dev/d2a9bd20-d78d-4cfc-b190-c11dd0964649%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/c5c517c9-8a2f-421d-be43-b9f304b0f317%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
