do not use mouseover, use mousedown!

ref #5596
This commit is contained in:
Max Grossman
2018-12-20 09:05:23 -05:00
parent 5a1dfeec72
commit e3407d4168
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ export function uiCombobox(context, klass) {
.on('keydown.typeahead', keydown)
.on('keyup.typeahead', keyup)
.on('input.typeahead', change)
.on('mouseover', mouseover)
.on('mousedown', mousedown)
.each(addCaret);
function addCaret() {
@@ -189,7 +189,7 @@ export function uiCombobox(context, klass) {
}
function mouseover() {
function mousedown() {
// prevent the form element from blurring. it blurs on mousedown
d3_event.stopPropagation();
d3_event.preventDefault();