Skip to content

Commit 23e3608

Browse files
committed
Minor tweak to the reset() method in the ComboBox. Also replaced "desc" attribute with "javaxt-" css class.
1 parent a0e2257 commit 23e3608

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/combobox/ComboBox.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ javaxt.dhtml.ComboBox = function(parent, config) {
199199

200200
//Create main div
201201
var mainDiv = createElement("div", parent);
202-
mainDiv.setAttribute("desc", me.className);
202+
mainDiv.className = "javaxt-combobox";
203203
mainDiv.style.width = config.style.width;
204204
mainDiv.style.position = "relative";
205205
me.el = mainDiv;
@@ -501,6 +501,7 @@ javaxt.dhtml.ComboBox = function(parent, config) {
501501
* dropdown menu.
502502
*/
503503
this.reset = function(){
504+
me.hideMenu();
504505

505506
//Remove everything that's not an input
506507
var a = [];
@@ -515,7 +516,8 @@ javaxt.dhtml.ComboBox = function(parent, config) {
515516

516517
//Ensure the input is visible
517518
input.show();
518-
519+
520+
input.blur();
519521
};
520522

521523

0 commit comments

Comments
 (0)