We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<body class="page1">
The text was updated successfully, but these errors were encountered:
Is there a reason body.classList.add("page1"); m.redraw() wouldn't work?
body.classList.add("page1"); m.redraw()
Note that you can't modify attributes on the node you're rendering to via Mithril alone.
Sorry, something went wrong.
m.redraw() is not even required. see this
m.redraw()
You also may come to the gitter-chat if you have any further questions.
this ok!
view: function() { document.body.classList.add("layout-auth"); return ....
@millken Try in oncreate/onupdate instead, to save yourself a lot of rendering perf:
oncreate
onupdate
oncreate: function() { document.body.classList.add("layout-auth") }
No branches or pull requests
<body class="page1">
The text was updated successfully, but these errors were encountered: