Skip to content

Commit

Permalink
fix(js): convert header and footer templates to divs
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Sep 14, 2020
1 parent 7bf1a4e commit 1435aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/autocomplete-js/src/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function autocomplete<TItem>({
});

if (source.templates.header) {
const header = document.createElement('header');
const header = document.createElement('div');
setProperties(header, {
class: concatClassNames([
'aa-SectionHeader',
Expand Down Expand Up @@ -194,7 +194,7 @@ export function autocomplete<TItem>({
}

if (source.templates.footer) {
const footer = document.createElement('footer');
const footer = document.createElement('div');
setProperties(footer, {
class: concatClassNames([
'aa-SectionFooter',
Expand Down

0 comments on commit 1435aad

Please sign in to comment.