Skip to content

Commit

Permalink
feat(jsx): add close event to Dialog (#1348)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
arjunyel authored and manucorporat committed May 18, 2019
1 parent 5ab62b8 commit f722975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/declarations/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export namespace JSXBase {
}

export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
onClose?: (event: Event) => void;
open?: boolean;
returnValue?: string;
}
Expand Down

0 comments on commit f722975

Please sign in to comment.