-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dom-if template got rendered once even if the condition is false #1663
Comments
The top-level template for a Polymer element must not be a template extension, like If you look in the console, with
|
Also note that by default, |
Closing this issue; please re-open if there is something deeper going on, and if so please try creating a repro case for us to look at starting with http://jsbin.com/dusofavuje/1/edit?html,output. |
Thanks for your reply, but the issue is still not fixed. The missing of vanilla top-level is by mistake. And I just make a more proper demo here to show you the bug. Re-pro step:
What's wrong: |
I am trying to accomplish a conditional binding using a
Function _continueLoop: function (value) {
alert("This function is not being called at all!No alert message.");
if (value == 1) return true;
else return false;
} My intention is to stop What is the best way to do this? |
@emfluenceindia Attributes need to be written with lower-case and hyphen only ( |
Say I got something like this:
When foo is changing from
to
The first template still got rendered, and that may cause some issue, since the method
someComputedProperty
always assumesfoo.bar
being true.Additionally it's seems like wasting of performance, since it's rendering a template which should not be.
So I'm wondering is this a bug and what can I do for now.
Thx.
The text was updated successfully, but these errors were encountered: