Skip to content

Commit ff9ab97

Browse files
Merge pull request #5781 from Pickachu:fix-form-method-in-dialog
PiperOrigin-RevId: 738894078
2 parents 919fe12 + c771f42 commit ff9ab97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dialog/internal/dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export class Dialog extends dialogBaseClass {
371371
private handleSubmit(event: SubmitEvent) {
372372
const form = event.target as HTMLFormElement;
373373
const {submitter} = event;
374-
if (form.method !== 'dialog' || !submitter) {
374+
if (form.getAttribute('method') !== 'dialog' || !submitter) {
375375
return;
376376
}
377377

0 commit comments

Comments
 (0)