Skip to content

Commit c2f4eca

Browse files
author
minjk-bl
committed
Select all text on click/focusing VarSelector
1 parent b29577d commit c2f4eca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/com/component/VarSelector2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,14 @@ define([
320320
return false;
321321
}
322322
}).focus(function () {
323+
$(this).select();
323324
$(this).autocomplete('search', $(this).val());
324325
}).click(function () {
326+
$(this).select();
325327
$(this).autocomplete('search', $(this).val());
326328
}).autocomplete('instance')._renderItem = function(ul, item) {
327329
return $('<li>').attr('data-value', item.value)
328-
.append(`<div class="vp-vs-item">${item.label}<label class="vp-gray-text">&nbsp;| ${item.dtype}</label></div>`)
330+
.append(`<div class="vp-vs-item">${item.label}<label class="vp-gray-text vp-cursor">&nbsp;| ${item.dtype}</label></div>`)
329331
.appendTo(ul);
330332
};
331333
}

0 commit comments

Comments
 (0)