Vue-fontawesome with instant-search

Good day everyone,

I am currently using instantsearch.js with vue (not vue-instantsearch), and also use vue-fontawesome.

I have an issue when using icons in a template, I place a <fa icon="tick"></fa> in the clearAll widget template, however it does not render (remains a fa tag).

Has anyone else found a solution to this issue, or is there a way to reinit the FA after vue load.

I have found the solution.

import {dom} from '@fortawesome/fontawesome-svg-core';
dom.watch();

Then use a normal <i> tag in the template.

1 Like