Closed robrez closed 9 years ago
I thiiiiiiink @cdata just fixed this for 1.0 with https://github.com/PolymerElements/paper-tabs/pull/33. Would you mind checking if that fix works for you? Thanks!
:( No dice for me. I'll see if I can puzzle out any more details.
(Just realized I posted this in Polymer/paper-tabs instead of PolymerElements/paper-tabs... Oops!).
Closing. Moved the issue to PolymerElements/paper-tabs where I've provided a simpler duplication path and some additional findings.
I'm migrating some code from 0.5.2 to 1.0.2 and am seeing some inconsistent behavior out of my paper-tabs.
#selectionBar
can go missing and the trouble seems to relate to the fact that I'm hiding the paper-tabs in certain situations.My original code used a conditional template to swap out toolbars (one of which contains the tabs) whenever certain pages are selected. I tried to work-around the problems by using a conditional
hidden$
attribute instead of adom-if
.My general setup is that I've bound a set of paper-tabs and neon-animated-pages to a selected property:
When pages 1 or 2 (inbox, outbox) are selected, the toolbar containing the tabs is visible. When page 3 (compose) is selected (by clicking the create icon), I replace the toolbar w/ one that is context-appropriate for that page's function. The 3rd pages toolbar has a declarative on-tap event that changes
selected
back to one of the other pages...Note: The correct page is always being displayed. These numbered items correspond to the image below:
showPreviousPage
sets selected back to 0.Clicking back on "Inbox" (selected = 0) does get everything back to a correct looing state (like figure 1).