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

Commit b1215b4

Browse files
kickermeisterFlorian-Schoenherr
authored andcommitted
fix: on:change support for select component
1 parent ba92ccf commit b1215b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/svelte-materialify/src/components/Select/Select.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script>
2+
import { createEventDispatcher } from 'svelte';
23
import TextField from '../TextField';
34
import Menu from '../Menu';
45
import { ListItemGroup, ListItem } from '../List';
@@ -25,6 +26,8 @@
2526
export let disabled = null;
2627
export let closeOnClick = !multiple;
2728
export let format = (val) => (Array.isArray(val) ? val.join(', ') : val);
29+
const dispatch = createEventDispatcher();
30+
$: dispatch('change', value)
2831
</script>
2932

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

0 commit comments

Comments
 (0)