Don't show the combobox control for a readonly input field

This commit is contained in:
Bryan Housel
2018-11-26 11:18:04 -05:00
parent ae063e9616
commit 4972fed136
+3 -1
View File
@@ -241,7 +241,9 @@ export function d3combobox() {
}
function render() {
if (_suggestions.length >= _minItems && document.activeElement === input.node()) {
if (_suggestions.length >= _minItems &&
document.activeElement === input.node() &&
input.attr('readonly') === null) {
show();
} else {
hide();