From 53e7c9173150064a5c7fa0e4ef907561c6d07e41 Mon Sep 17 00:00:00 2001 From: JFH <20402845+jfhenon@users.noreply.github.com> Date: Sun, 20 Dec 2020 00:44:27 +0100 Subject: [PATCH] Update seDropdown.js --- src/editor/components/seDropdown.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/editor/components/seDropdown.js b/src/editor/components/seDropdown.js index e38979b2..91accd1f 100644 --- a/src/editor/components/seDropdown.js +++ b/src/editor/components/seDropdown.js @@ -43,11 +43,10 @@ class Dropdown extends ListComboBox { padding: 4px; background: #E8E8E8; border: 1px solid #B0B0B0; - margin: 0 0 -1px 0; - line-height: 16px; + width: 100%; } [part~="popup"] { - width: max-content; + width: 150%; } `.content @@ -106,7 +105,7 @@ class Dropdown extends ListComboBox { // Wire up handler on new input. this.addEventListener('close', (e) => { e.preventDefault(); - const value = e.detail?.closeResult.getAttribute('value'); + const value = e.detail?.closeResult?.getAttribute('value'); if (value) { const closeEvent = new CustomEvent('change', {detail: {value}}); this.dispatchEvent(closeEvent);