File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ class CodeitElement extends HTMLElement {
388388 } ) ;
389389
390390
391- cd . on ( 'paste cut' , ( ) => { cd . dispatchEvent ( typeEvent ) } ) ;
391+ cd . on ( 'cut' , ( ) => { cd . dispatchEvent ( typeEvent ) } ) ;
392392
393393 cd . on ( 'keydown mousedown mouseup touchstart touchend focus blur' ,
394394 ( ) => { onNextFrame ( checkCaretPosEvent ) } , false ) ;
@@ -412,6 +412,8 @@ class CodeitElement extends HTMLElement {
412412
413413 selection . getRangeAt ( 0 ) . insertNode ( document . createTextNode ( paste ) ) ;
414414
415+ cd . dispatchEvent ( typeEvent ) ;
416+
415417 /*// if selecting codeit element itself
416418 if (selection.baseNode === cd) {
417419
@@ -426,7 +428,7 @@ class CodeitElement extends HTMLElement {
426428
427429 }*/
428430
429- event . preventDefault ( ) ;
431+ e . preventDefault ( ) ;
430432
431433 } ) ;
432434
You can’t perform that action at this time.
0 commit comments