File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ describe('Rendering', () => {
259259 // Try to click one a few options
260260 await click ( document . querySelector ( '[data-value="slot-prop"]' ) )
261261
262- // Make sure that the onChange handler got called
262+ // Make sure that the value changed
263263 expect ( get ( value ) ) . toEqual ( "slot-prop" ) ;
264264 } )
265265
Original file line number Diff line number Diff line change 11<script lang =" ts" context =" module" >
22 type HandlerType = (event ? : CustomEvent ) => any ;
33 interface ComponentProps {
4- onChange? : HandlerType ;
54 onClose? : HandlerType ;
65 onFocus? : HandlerType ;
76 onKeydown? : HandlerType ;
3433 export let allProps: TestRendererProps ;
3534
3635 let spreadProps = {};
37- let onChange: HandlerType = () => {};
3836 let onClose: HandlerType = () => {};
3937 let onFocus: HandlerType = () => {};
4038 let onKeydown: HandlerType = () => {};
4139 let onSubmit: HandlerType = () => {};
4240 let onClick: HandlerType = () => {};
4341 if (allProps && typeof allProps !== " string" && isSingleComponent (allProps )) {
4442 ({
45- onChange = onChange ,
4643 onClose = onClose ,
4744 onFocus = onFocus ,
4845 onKeydown = onKeydown ,
6158 <svelte:component
6259 this ={allProps [0 ]}
6360 {...spreadProps }
64- on:change ={onChange }
6561 on:close ={onClose }
6662 on:focus ={onFocus }
6763 on:keydown ={onKeydown }
You can’t perform that action at this time.
0 commit comments