Skip to content

btnSubmit fails detection after html minification #229

Open
@markmono

Description

@markmono

After playing around with minifying my html, I came across an issue where the submit button detection no longer works due to type="submit" being removed from buttons.

My approach was changing the selector being used to detect the submit button

let btnSubmit = form.querySelector('button:not([type="button"]:not([type="reset"]');

This will still allow any other buttons which appear on the modal to perform as expected.

Metadata

Metadata

Assignees

Labels

Q&AQuestions and answers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions