2019-10-16 06:38:45 +02:00
|
|
|
<script>
|
2020-02-03 10:50:30 +01:00
|
|
|
export let value = ""
|
|
|
|
export let className = ""
|
2019-10-16 06:38:45 +02:00
|
|
|
|
2020-02-03 10:50:30 +01:00
|
|
|
export let _bb
|
2019-10-16 06:38:45 +02:00
|
|
|
|
2020-02-03 10:50:30 +01:00
|
|
|
let actualValue = ""
|
2020-02-25 16:21:23 +01:00
|
|
|
let selectElement
|
2020-02-14 12:51:45 +01:00
|
|
|
|
|
|
|
$: selectElement && _bb.attachChildren(selectElement)
|
2019-10-16 06:38:45 +02:00
|
|
|
|
2020-02-03 10:50:30 +01:00
|
|
|
const onchange = ev => {
|
|
|
|
if (_bb) {
|
|
|
|
_bb.setStateFromBinding(_bb.props.value, ev.target.value)
|
|
|
|
}
|
|
|
|
}
|
2019-10-16 06:38:45 +02:00
|
|
|
</script>
|
|
|
|
|
2020-02-25 16:21:23 +01:00
|
|
|
<select
|
|
|
|
class={className}
|
|
|
|
{value}
|
|
|
|
on:change={onchange}
|
|
|
|
bind:this={selectElement} />
|