You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using SelfSufficient and it somehow disrupts subsequent render calls on the top-level node.
I spun up a codepen here to demonstrate: https://codepen.io/nicholsmike/pen/pWjGoM?editors=1000.
Notice that clicking the button changes the vnode.attrs.model state but the DOM doesnt update until you move the mouse again (causing another redraw).
Just pushed a fixed file. I added a helper method to help you out, as well as another lifecycle method to avoid related issues.
For event listeners, you'll want to use onclick: this.link(vnode, handler), which basically is an explicit equivalent to what Mithril does implicitly with event handlers when you use m.mount.
I tried using SelfSufficient and it somehow disrupts subsequent
render
calls on the top-level node.I spun up a codepen here to demonstrate: https://codepen.io/nicholsmike/pen/pWjGoM?editors=1000.
Notice that clicking the button changes the vnode.attrs.model state but the DOM doesnt update until you move the mouse again (causing another redraw).
ref: MithrilJS/mithril.js#1907
The text was updated successfully, but these errors were encountered: