Skip to content

Commit

Permalink
Merge pull request #333 from EngHell/upstream-pr
Browse files Browse the repository at this point in the history
clear event dispatcher now updates before emiting
  • Loading branch information
adamberecz authored Oct 6, 2023
2 parents 435dc9c + 7c9ae56 commit 48fb694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/useOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ export default function useOptions (props, context, dep)
}

const clear = () => {
context.emit('clear', $this)
update(nullValue.value)
context.emit('clear', $this)
}

const isSelected = (option) => {
Expand Down Expand Up @@ -853,4 +853,4 @@ export default function useOptions (props, context, dep)
resolveOptions,
refreshLabels,
}
}
}

0 comments on commit 48fb694

Please sign in to comment.