You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paper-tabs element selection bar does not appear if element is initially hidden
Expected outcome
paper-tabs selection bar should render on the selected tab if the element becomes unhidden
Actual outcome
The selection bar does not render, despite the selection being set correctly. If another paper-tab is selected, the selection bar will appear on that paper-tab, and animate from the tab without the selection bar.
This particular issue has just hit me too as I restructured my application behind a neon-animated-pages selection.
My old structure set the tab value after the page was in view (after an ajax request for the tab data), but with the new structure an alternative page may be initially selected. So this affected page starts off hidden in certain circumstances (user reloads a url into the browser which selects the alternate page), and the ajax request to fetch the tab data is going on in the background and has completed before the user switches back to this page. In this scenario there is no selection bar at all on the tabs.
Is there anything we can do to force a repaint of the tabs. I don't really want to force it to a different value and back, because its all driven from routing.
Description
paper-tabs
element selection bar does not appear if element is initially hiddenExpected outcome
paper-tabs
selection bar should render on the selected tab if the element becomes unhiddenActual outcome
The selection bar does not render, despite the selection being set correctly. If another
paper-tab
is selected, the selection bar will appear on thatpaper-tab
, and animate from the tab without the selection bar.Live Demo
Example: https://jsbin.com/tucihuxayo/edit?output
Steps to reproduce
paper-tabs
element on the page with at least 2 tabs.paper-tabs
to some property (i.e.hidden:{type: Boolean, value: false}
)selected
prop to thepaper-tabs
, initially set to 0.iron-pages
. Fill it some sort of content for eachpaper-tab
(i.e. 2 divs for 2 tabs)paper-button
, etc(SEE THE ABOVE JSBIN FOR A DEMO)
Browsers Affected
The text was updated successfully, but these errors were encountered: