Skip to content

Commit df49da6

Browse files
author
Daniel Farrell
committed
Focus input on clicking dropdown, let's blur hide menu, 1.0.1
1 parent 6981532 commit df49da6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/bootstrap-combobox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* =============================================================
2-
* bootstrap-combobox.js v1.0.0
2+
* bootstrap-combobox.js v1.0.1
33
* =============================================================
44
* Copyright 2012 Daniel Farrell
55
*
@@ -81,6 +81,7 @@
8181
if (this.shown) {
8282
this.hide()
8383
} else {
84+
this.$element.val('').focus()
8485
this.lookup()
8586
}
8687
}

0 commit comments

Comments
 (0)