Skip to content

Commit

Permalink
fix(js): add footer template
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Feb 9, 2021
1 parent 383259d commit b2223d5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/autocomplete-js/src/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ export function renderPanel<TItem extends BaseItem>(
})}
</ul>
)}

{source.templates.footer && (
<div className={classNames.sourceFooter}>
{source.templates.footer({
createElement,
Fragment,
items,
source,
state,
})}
</div>
)}
</section>
));

Expand Down

0 comments on commit b2223d5

Please sign in to comment.