Merge "search: Fix unclickable search footer"

This commit is contained in:
jenkins-bot 2023-01-30 21:23:20 +00:00 committed by Gerrit Code Review
commit ce0002916c

View file

@ -40,7 +40,14 @@
</template> </template>
<!-- eslint-disable-next-line vue/no-template-shadow --> <!-- eslint-disable-next-line vue/no-template-shadow -->
<template #search-footer-text="{ searchQuery }"> <template #search-footer-text="{ searchQuery }">
<span v-i18n-html:vector-searchsuggest-containing="[ searchQuery ]"></span> <!--
Normally we'd use v-i18n-html here, like this:
<span v-i18n-html:vector-searchsuggest-containing="[ searchQuery ]"></span>
but that causes strange rerendering issues and makes the <strong> tag rendered
by the message unclickable, see T327229.
-->
<!-- eslint-disable-next-line max-len, vue/no-v-html -->
<span v-html="$i18n( 'vector-searchsuggest-containing' ).params( [ searchQuery ] ).parse()"></span>
</template> </template>
</cdx-typeahead-search> </cdx-typeahead-search>
</template> </template>