diff --git a/src/controldock.js b/src/controldock.js index 74857269..94d0c224 100644 --- a/src/controldock.js +++ b/src/controldock.js @@ -47,6 +47,12 @@ controls: [] }, options ); + // Disable the form's submit; otherwise button clicks and return keys + // can trigger it. + this.container.onsubmit = function() { + return false; + }; + if( this.element ){ this.element = $.getElement( this.element ); this.element.appendChild( this.container );