Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
fix: on:change support for select component
Browse files Browse the repository at this point in the history
  • Loading branch information
kickermeister authored and Florian-Schoenherr committed Mar 1, 2021
1 parent ba92ccf commit b1215b4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
import { createEventDispatcher } from 'svelte';
import TextField from '../TextField';
import Menu from '../Menu';
import { ListItemGroup, ListItem } from '../List';
Expand All @@ -25,6 +26,8 @@
export let disabled = null;
export let closeOnClick = !multiple;
export let format = (val) => (Array.isArray(val) ? val.join(', ') : val);
const dispatch = createEventDispatcher();
$: dispatch('change', value)
</script>

<style lang="scss" src="./Select.scss" global>
Expand Down

0 comments on commit b1215b4

Please sign in to comment.