Fix rendering bug with standard input buttons.
commit24c90b36733b6e62736096722b5a3e180132c33f
authorevancz <info@elm-lang.org>
dateSun 24 Mar 2013, 19:48 (14 years ago)
parent63a40ea
libraries/Native/Graphics/Input.js+1
@@ -31,6 +31,7 @@ Elm.Native.Graphics.Input = function(elm) {
3131 node.elmEvent = newModel.event;
3232 var txt = newModel.text;
3333 if (oldModel.text !== txt) node.innerHTML = txt;
34+ return true;
3435 }
3536
3637 function button(evnt, txt) {
runtime/Render/Element.js+2−1
@@ -226,7 +226,8 @@ function update(node, curr, next) {
226226 break;
227227 case "Custom":
228228 if (currE.type === nextE.type) {
229− nextE.update(node, currE.model, nextE.model);
229+ var done = nextE.update(node, currE.model, nextE.model);
230+ if (done) return;
230231 } else {
231232 return node.parentNode.replaceChild(render(next), node);
232233 }