fix(fluid-form): forward missing events (#583)

This commit is contained in:
Eric Liu 2021-03-28 12:10:51 -07:00 committed by GitHub
commit f4f209f13b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 3 deletions

View file

@ -5,6 +5,13 @@ export interface FluidFormProps {}
export default class FluidForm extends SvelteComponentTyped<
FluidFormProps,
{ submit: WindowEventMap["submit"] },
{
click: WindowEventMap["click"];
keydown: WindowEventMap["keydown"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
submit: WindowEventMap["submit"];
},
{ default: {} }
> {}

View file

@ -8,6 +8,7 @@ export default class Form extends SvelteComponentTyped<
FormProps,
{
click: WindowEventMap["click"];
keydown: WindowEventMap["keydown"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];