From 11f4cb7a5d47bce75ef830ff455bc9fe7f4b9f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Fri, 5 Feb 2021 12:58:46 +0100 Subject: [PATCH] fix(plugins): pass `createElement` to highlight utils --- .../autocomplete-plugin-query-suggestions/src/getTemplates.tsx | 1 + .../autocomplete-plugin-recent-searches/src/getTemplates.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/autocomplete-plugin-query-suggestions/src/getTemplates.tsx b/packages/autocomplete-plugin-query-suggestions/src/getTemplates.tsx index c4fd1ceef..3c8595a90 100644 --- a/packages/autocomplete-plugin-query-suggestions/src/getTemplates.tsx +++ b/packages/autocomplete-plugin-query-suggestions/src/getTemplates.tsx @@ -32,6 +32,7 @@ export function getTemplates({ {reverseHighlightHit({ hit: item, attribute: 'query', + createElement, })} diff --git a/packages/autocomplete-plugin-recent-searches/src/getTemplates.tsx b/packages/autocomplete-plugin-recent-searches/src/getTemplates.tsx index 59f9f8123..91879ad14 100644 --- a/packages/autocomplete-plugin-recent-searches/src/getTemplates.tsx +++ b/packages/autocomplete-plugin-recent-searches/src/getTemplates.tsx @@ -25,6 +25,7 @@ export function getTemplates({ {reverseHighlightHit({ hit: item, attribute: 'query', + createElement, })}