Skip to content

Commit

Permalink
fix(vue-instantsearch): Use getDefaultSlots in Highlighter.vue
Browse files Browse the repository at this point in the history
Ensure that it works with Vue 3 and @vue/compat during a Vue 2 to 3
migration
  • Loading branch information
candersony committed Jan 20, 2024
1 parent d611b37 commit 5e99b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-instantsearch/src/components/Highlighter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { parseAlgoliaHit } from '../util/parseAlgoliaHit';
import { getDefaultSlot, renderCompat, isVue3 } from '../util/vue-compat';
const TextNode = isVue3
? (props, context) => context.slots.default()
? (props, context) => getDefaultSlot(context)
: {
render: renderCompat(function () {
return getDefaultSlot(this);
Expand Down

0 comments on commit 5e99b13

Please sign in to comment.