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
this method receives dom-change events triggered by nested sub-templates, not just by the immediately enclosed template
when one of those sub-templates fires this event, AND the iron-swipeable-pages widget is not currently visible, THEN it defaults to fallback selection and loses it's state;
when the widget becomes visible again, it remains invisible, because it's selected==null
it's not easy to restore the state; a one-way databinding doesn't work because the property effects don't engage because the value hasn't "changed" (synchronous events). a two way binding just gets overwritten with the new fallback value. the only way I can think of to work around this
would be to bind to dom-change myself; yuck.
I'm not 100% what the intent of this code was. Something about hiding blank pages? I commented it out without any apparent ill effect. Do we really need it? If this is critical functionality can we find a better way to implement it with fewer side effects?
the use-case was if I remember well, some nested dom-if inside dom-repeat which under some circumstances led to the disappearing of the current page, which if not directed to the fallback introduced a problem...
2a38231#diff-13549f957703a50cf7279a9976ac1f77R187
this method receives dom-change events triggered by nested sub-templates, not just by the immediately enclosed template
when one of those sub-templates fires this event, AND the iron-swipeable-pages widget is not currently visible, THEN it defaults to fallback selection and loses it's state;
when the widget becomes visible again, it remains invisible, because it's selected==null
it's not easy to restore the state; a one-way databinding doesn't work because the property effects don't engage because the value hasn't "changed" (synchronous events). a two way binding just gets overwritten with the new fallback value. the only way I can think of to work around this
would be to bind to dom-change myself; yuck.
I'm not 100% what the intent of this code was. Something about hiding blank pages? I commented it out without any apparent ill effect. Do we really need it? If this is critical functionality can we find a better way to implement it with fewer side effects?
here's a contrived example
The text was updated successfully, but these errors were encountered: