Skip to content

Commit 0dacf0d

Browse files
author
jin
committed
$mol_string: don't rely on event target
1 parent f8c46d0 commit 0dacf0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

string/string.view.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace $.$$ {
88
@ $mol_action
99
event_change( next? : Event ) {
1010
if( !next ) return
11-
const el = next.target as HTMLInputElement
11+
const el = this.dom_node() as HTMLInputElement
1212
const from = el.selectionStart
1313
const to = el.selectionEnd
1414
try {

0 commit comments

Comments
 (0)