We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa53a58 commit 3aa5ccdCopy full SHA for 3aa5ccd
webcompat/static/js/lib/bugform.js
@@ -223,12 +223,15 @@ function BugForm() {
223
this.checkURLValidity();
224
this.checkProblemTypeValidity();
225
this.checkImageTypeValidity();
226
- this.checkOptionalNonEmpty();
227
// and open the form, if it's not already open
228
if (!this.reportButton.hasClass('is-open')) {
229
this.reportButton.click();
230
}
231
+ // Make sure we only do this if the inputs exist on the page
232
+ if (this.browserField.length || this.osField.length) {
233
+ this.checkOptionalNonEmpty();
234
+ }
235
};
236
237
/* makeInvalid can take an {altHelp: true} options argument to select
0 commit comments