Skip to content
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

default display state of nodes that have if\unless #277

Open
avalanche1 opened this issue Oct 21, 2016 · 5 comments
Open

default display state of nodes that have if\unless #277

avalanche1 opened this issue Oct 21, 2016 · 5 comments

Comments

@avalanche1
Copy link

avalanche1 commented Oct 21, 2016

I stumbled into an issue where nodes that have if\unless bindings when their default value is false\true (respectively for if\unless) or binded method evaluates to false\true - they flash briefly before being hidden (depending on browser, cpu performance, etc).
In such cases I had to opt out for Blaze '#if' which doesnt render the node at all.
I suggest that all nodes that have if\unless bindings have dispay: none by default to prevent this.

@hluz
Copy link

hluz commented Nov 7, 2016

There is really no need to fallback to Blaze #if due to this. Adding style="display:none;" to the element's attribute list works fine...

@avalanche1
Copy link
Author

Are you kidding?

@hluz
Copy link

hluz commented Nov 8, 2016

Does it sound like?

@avalanche1
Copy link
Author

Sounds inconvenient and anti-DRY if you're serious.

@ManuelDeLeon
Copy link
Owner

I need to check on this because I was pretty sure if a property had a default of false then the flash wouldn't occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants