Skip to content

Commit

Permalink
fix(p-select-dropdown): apply vOnClickOutside (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
piggggggggy authored Oct 6, 2022
1 parent 5991a06 commit 84829c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/inputs/dropdown/select-dropdown/PSelectDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ import {
reactive,
toRefs,
} from 'vue';
import type { DirectiveFunction } from 'vue';
import type { Vue } from 'vue/types/vue';
import { vOnClickOutside } from '@vueuse/components';
import { groupBy, reduce } from 'lodash';
import vClickOutside from 'v-click-outside';
import PI from '@/foundation/icons/PI.vue';
Expand All @@ -92,7 +93,7 @@ import { makeOptionalProxy } from '@/util/composition-helpers';
export default defineComponent<SelectDropdownProps>({
name: 'PSelectDropdown',
directives: {
clickOutside: vClickOutside.directive,
clickOutside: vOnClickOutside as DirectiveFunction,
},
components: {
PI,
Expand Down Expand Up @@ -162,7 +163,7 @@ export default defineComponent<SelectDropdownProps>({
default: false,
},
},
setup(props: SelectDropdownProps, { emit, slots }) {
setup(props, { emit, slots }) {
const vm = getCurrentInstance()?.proxy as Vue;
const {
Expand Down

0 comments on commit 84829c7

Please sign in to comment.