Skip to content

Commit 156c957

Browse files
committed
add storybook action for geocode event
1 parent 4ef5626 commit 156c957

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/form/dt-location-map/dt-location-map.stories.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default {
8080
error: { control: 'text' },
8181
slot: { control: 'text' },
8282
onChange: { action: 'on-change' },
83+
onGeocode: { action: 'dt:geocode' },
8384
...argTypes,
8485
},
8586
args: {
@@ -106,6 +107,7 @@ export default {
106107
error: '',
107108
slot: '',
108109
onChange: action('on-change'),
110+
onGeocode: action('dt:geocode'),
109111
},
110112
render: args => {
111113
const {
@@ -125,6 +127,7 @@ export default {
125127
loading = false,
126128
saved = false,
127129
onChange,
130+
onGeocode,
128131
open,
129132
slot,
130133
i18n,
@@ -155,6 +158,7 @@ export default {
155158
limit="${ifDefined(args.limit)}"
156159
error="${ifDefined(args.error)}"
157160
@change=${args.onChange}
161+
@dt:geocode=${args.onGeocode}
158162
>
159163
${args.slot}
160164
</dt-location-map>

0 commit comments

Comments
 (0)