소스 검색

fixed dbl click while editing trigger exception

Nicolas Cannasse 6 년 전
부모
커밋
09afe5dd5a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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 ) {