File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export const hostReconcile: Reconciler = (opt) => {
116116 ( opt . shadowCache . node as Element ) . addEventListener (
117117 inputEvent . key ,
118118 ( evt : Event ) => {
119- const shadowElement = opt . shadowElement as ShadowHostElement ;
119+ const shadowElement = opt . shadowCache . value as ShadowHostElement ;
120120 const newValue = ( evt . currentTarget as HTMLInputElement ) . value ;
121121
122122 shadowElement . props [ `${ EVENT_PREFIX } ${ inputEvent . key } ` ] ( evt ) ;
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ describe("webcomponent", () => {
154154
155155 expect (
156156 ( component . shadowRoot ?. childNodes [ 0 ] as HTMLInputElement ) . value ,
157- ) . to . equal ( "foo " ) ;
157+ ) . to . equal ( "foobar " ) ;
158158 } ) ;
159159
160160 it ( "registers input event without updating" , async ( ) => {
You can’t perform that action at this time.
0 commit comments