File: DropDownButton.js

package info (click to toggle)
tt-rss 21~git20210204.b4cbc79%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,424 kB
  • sloc: php: 29,355; javascript: 13,884; sql: 2,341; sh: 315; makefile: 81; perl: 9
file content (12 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
/* global dijit */
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
		},
	});
});