2019-10-16 17:38:45 +13:00
|
|
|
<script>
|
2020-02-03 22:50:30 +13:00
|
|
|
export let value = ""
|
|
|
|
export let className = ""
|
|
|
|
export let type = "text"
|
2019-10-16 17:38:45 +13:00
|
|
|
|
2020-02-03 22:50:30 +13:00
|
|
|
export let _bb
|
2019-10-16 17:38:45 +13:00
|
|
|
|
2020-02-03 22:50:30 +13:00
|
|
|
let actualValue = ""
|
2019-10-16 17:38:45 +13:00
|
|
|
|
2020-02-03 22:50:30 +13:00
|
|
|
const onchange = ev => {
|
|
|
|
if (_bb) {
|
|
|
|
_bb.setStateFromBinding(_bb.props.value, ev.target.value)
|
|
|
|
}
|
|
|
|
}
|
2019-10-16 17:38:45 +13:00
|
|
|
</script>
|
|
|
|
|
2020-02-03 22:50:30 +13:00
|
|
|
<input class={className} {type} {value} on:change={onchange} />
|