Skip to content

Commit f722975

Browse files
arjunyelmanucorporat
authored andcommitted
feat(jsx): add close event to Dialog (#1348)
* Add close event to Dialog I believe that I should be able to do an inline event listener for the close event. Example is the returning value from dialog section https://demo.agektmr.com/dialog/ https://html.spec.whatwg.org/multipage/interactive-elements.html#the-dialog-element * Update jsx.ts
1 parent 5ab62b8 commit f722975

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/declarations/jsx.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export namespace JSXBase {
261261
}
262262

263263
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
264+
onClose?: (event: Event) => void;
264265
open?: boolean;
265266
returnValue?: string;
266267
}

0 commit comments

Comments
 (0)