Browse Source

fixed dbl click while editing trigger exception

Nicolas Cannasse 6 years ago
parent
commit
09afe5dd5a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hide/comp/cdb/Cell.hx

+ 1 - 0
hide/comp/cdb/Cell.hx

@@ -259,6 +259,7 @@ class Cell extends Component {
 			element.addClass("edit");
 			var i = new Element(longText ? "<textarea>" : "<input>").appendTo(element);
 			i.keypress(function(e) e.stopPropagation());
+			i.dblclick(function(e) e.stopPropagation());
 			//if( str != "" && (table.displayMode == Properties || table.displayMode == AllProperties) )
 			//	i.css({ width : Math.ceil(textWidth - 3) + "px" }); -- bug if small text ?
 			if( longText ) {