I think I know what's going on. Currently, my router, just like with 
iron-pages, just shows and hides the appropriate element on a matching 
route. In order to achieve a full "reset" of form controls, I'll need to 
add and remove elements from the DOM instead of showing and hiding them. 

I see that polymer-shop achieves a similar effect by calling its own 
_reset() function when the view is 
hidden 
https://github.com/Polymer/shop/blob/380739c01444f4ea0c9e9aea1806f9cda9ed145c/src/shop-checkout.html#L548-L558
 

Should I go the route of adding/removing the views instead of showing and 
hiding them, would there be any serious performance implications?

On Tuesday, October 24, 2017 at 5:46:00 PM UTC-4, Kevin Sheppard wrote:
>
> Can anyone explain why this is happening? 
> https://stackoverflow.com/questions/46920427/form-elements-retain-values-after-navigation-in-single-page-app
>  
>

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/32f1e15a-8232-4111-b04f-f6e5bf136b9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to