From 4972fed136ae64c1ee328a9cb2255e76a3d7f9c5 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 26 Nov 2018 11:18:04 -0500 Subject: [PATCH] Don't show the combobox control for a readonly input field --- modules/lib/d3.combobox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lib/d3.combobox.js b/modules/lib/d3.combobox.js index c424b797c..c82be677f 100644 --- a/modules/lib/d3.combobox.js +++ b/modules/lib/d3.combobox.js @@ -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();