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

Allow for w-preserve-attrs to enable preservation of attributes #121

Closed
1N50MN14 opened this issue Jan 29, 2016 · 1 comment
Closed

Allow for w-preserve-attrs to enable preservation of attributes #121

1N50MN14 opened this issue Jan 29, 2016 · 1 comment

Comments

@1N50MN14
Copy link
Contributor

w-preserve-attrs="style,class"

Because Marko Widgets doesn't maintain a separate virtual DOM it will reset manual changes to element attributes on rerender() . It should be possible to specify attributes for Marko to ignore. This is mostly the case with class and style attributes where external animation / tweening engines such as Velocity.js or GSAP are often used whereas we still wish to rely on setState() while still maintaining element styles as set manually outside Marko.

@patrick-steele-idem
Copy link
Contributor

New version published: [email protected]

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

2 participants