From 5e99b131d62f5ec7c99041c760198d97a31ee760 Mon Sep 17 00:00:00 2001 From: Craig Anderson Date: Sat, 20 Jan 2024 13:24:48 +0000 Subject: [PATCH] fix(vue-instantsearch): Use getDefaultSlots in Highlighter.vue Ensure that it works with Vue 3 and @vue/compat during a Vue 2 to 3 migration --- packages/vue-instantsearch/src/components/Highlighter.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-instantsearch/src/components/Highlighter.vue b/packages/vue-instantsearch/src/components/Highlighter.vue index 2c9cf6f5203..042b296eb40 100644 --- a/packages/vue-instantsearch/src/components/Highlighter.vue +++ b/packages/vue-instantsearch/src/components/Highlighter.vue @@ -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);