Skip to content

Commit

Permalink
feat(KPop,KPrompt,KRadio, KSegmentedControl): add types [KHCP-6971]
Browse files Browse the repository at this point in the history
  • Loading branch information
DariaYeremina committed Apr 20, 2023
1 parent 1cdbbdc commit 0d2d866
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/KSegmentedControl/KSegmentedControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ const getDisabled = (option: SegmentedControlOption): boolean => {
return !!option.disabled || props.isDisabled
}
const handleClick = (evt: any): void => {
const handleClick = (evt: PointerEvent): void => {
// @ts-ignore
emit('click', evt.target?.name)
// @ts-ignore
emit('update:modelValue', evt.target?.name)
}
</script>
Expand Down

0 comments on commit 0d2d866

Please sign in to comment.