summaryrefslogtreecommitdiff
path: root/js/form/DropDownButton.js
blob: d5ea39726e08774b681691f330d80b268b48a34d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* eslint-disable prefer-rest-params */
/* global dijit, define */
define(["dojo/_base/declare", "dijit/form/DropDownButton"], function (declare) {
	return declare("fox.form.DropDownButton", dijit.form.DropDownButton, {
		startup: function() {
			this.inherited(arguments);
			this.dropDown.autoFocus = true; // Allow dropdown menu to be focused on click
		},
		focus: function() {
			return; // Stop dijit.form.DropDownButton from keeping focus after closing the menu
		},
	});
});