Update seDropdown.js
parent
74837430f4
commit
53e7c91731
|
@ -43,11 +43,10 @@ class Dropdown extends ListComboBox {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
background: #E8E8E8;
|
background: #E8E8E8;
|
||||||
border: 1px solid #B0B0B0;
|
border: 1px solid #B0B0B0;
|
||||||
margin: 0 0 -1px 0;
|
width: 100%;
|
||||||
line-height: 16px;
|
|
||||||
}
|
}
|
||||||
[part~="popup"] {
|
[part~="popup"] {
|
||||||
width: max-content;
|
width: 150%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
`.content
|
`.content
|
||||||
|
@ -106,7 +105,7 @@ class Dropdown extends ListComboBox {
|
||||||
// Wire up handler on new input.
|
// Wire up handler on new input.
|
||||||
this.addEventListener('close', (e) => {
|
this.addEventListener('close', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const value = e.detail?.closeResult.getAttribute('value');
|
const value = e.detail?.closeResult?.getAttribute('value');
|
||||||
if (value) {
|
if (value) {
|
||||||
const closeEvent = new CustomEvent('change', {detail: {value}});
|
const closeEvent = new CustomEvent('change', {detail: {value}});
|
||||||
this.dispatchEvent(closeEvent);
|
this.dispatchEvent(closeEvent);
|
||||||
|
|
Loading…
Reference in New Issue