Skip to content

Commit

Permalink
refactor(autosuggest): update demo in shadow dom section
Browse files Browse the repository at this point in the history
  • Loading branch information
bualoy-napat committed Jan 18, 2024
1 parent 1ea8d9a commit a1ff733
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/elements/src/autosuggest/__demo__/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
</p>
<div id="search-suggestion"></div>
<script>
const wrapper = document.getElementById('search-suggestion');
const hostElement = document.getElementById('search-suggestion').attachShadow({ mode: 'open' });
const searchField = document.createElement('ef-search-field');
const autoSuggest = document.createElement('ef-autosuggest');
autoSuggest.attach = searchField;
Expand All @@ -666,8 +666,8 @@
autoSuggest.suggestions = data;
});
});
wrapper.appendChild(searchField);
wrapper.appendChild(autoSuggest);
hostElement.appendChild(searchField);
hostElement.appendChild(autoSuggest);
</script>
</demo-block>
</body>
Expand Down

0 comments on commit a1ff733

Please sign in to comment.