Skip to content

Commit ca6193a

Browse files
asynclizcopybara-github
authored andcommitted
chore: relax type property of mixinFormSubmitter to string
PiperOrigin-RevId: 882322163
1 parent 082faad commit ca6193a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labs/behaviors/form-submitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface FormSubmitter {
3939
* - reset: The element resets the form.
4040
* - button: The element does nothing.
4141
*/
42-
type: FormSubmitterType;
42+
type: string;
4343

4444
/**
4545
* The HTML name to use in form submission. When combined with a `value`, the
@@ -77,7 +77,7 @@ export function mixinFormSubmitter<
7777
T extends MixinBase<LitElement & WithElementInternals>,
7878
>(base: T): MixinReturn<T, FormSubmitter> {
7979
abstract class FormSubmitterElement extends base implements FormSubmitter {
80-
@property() type: FormSubmitterType = 'submit';
80+
@property() type = 'submit';
8181
@property({reflect: true}) value = '';
8282

8383
// Name attribute must reflect synchronously for form integration.

0 commit comments

Comments
 (0)