Skip to content

Commit

Permalink
fix: used methods after destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
blasdfaa committed May 28, 2024
1 parent 8af456d commit d50d1ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/vue-air-datepicker/src/use-datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export function useDatepicker(
let datepicker: AirDatepicker<HTMLElement> | undefined

function init() {
if (datepicker?.isDestroyed)
return

const target = (typeof el === 'string' ? el : unrefElement(el))
if (!target || datepicker !== undefined)
return
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d50d1ed

Please sign in to comment.