Close on select and wrap selection
This commit is contained in:
parent
5f4747aa25
commit
6ad280a423
|
@ -80,6 +80,7 @@
|
|||
function handleClick(val) {
|
||||
value = val
|
||||
onChange(value)
|
||||
toggleSelect(false)
|
||||
}
|
||||
|
||||
$: menuStyle = buildStyle({
|
||||
|
@ -108,7 +109,7 @@
|
|||
bind:this={select}
|
||||
class="bb-select-container"
|
||||
on:click={() => toggleSelect(!open)}>
|
||||
<div bind:this={selectAnchor} class="bb-select-anchor selected">
|
||||
<div bind:this={selectAnchor} title={value} class="bb-select-anchor selected">
|
||||
<span>{displayLabel}</span>
|
||||
<i bind:this={icon} class="ri-arrow-down-s-fill" />
|
||||
</div>
|
||||
|
@ -174,6 +175,7 @@
|
|||
background-color: var(--grey-2);
|
||||
border-radius: 5px;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bb-select-anchor > span {
|
||||
|
|
Loading…
Reference in New Issue