We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baaa13d commit 680cbf2Copy full SHA for 680cbf2
media/js/mozorg/contribute/contribute-2015.js
@@ -149,6 +149,11 @@
149
$('#inquiry-form input[name="category"]').on('change', function() {
150
var $this = $(this);
151
select_category($this);
152
+ }).on('invalid', function() {
153
+ // If no category is selected, the input element fires an invalid event
154
+ // and shows an error tooltip when the user attempts to submit the form.
155
+ // In that case, display the entire list so the user won't get confused.
156
+ $('#inquiry-form .option-list').get(0).scrollIntoView();
157
});
158
159
// If a category is checked at pageload, do the selection stuff
0 commit comments