Skip to content

Commit

Permalink
test: [web-components] close alert-web component
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgoud committed Mar 21, 2024
1 parent 6e99c76 commit 6a26eef
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@
<script>
// Alert
const alertClosableEvent = () => {
document.querySelector(".puik-icon .puik-alert__close").addEventListener("click", (event) => {
console.log("alert closable!", event);
});
};
const alertWeb = document.querySelector('puik-alert-web');
alertWeb.addEventListener('close', function(e) {
console.log(e.detail);
alertWeb.style.display = 'none'
});
// Breadcrumb
const breadcrumb = document.querySelector('puik-breadcrumb-web')
Expand Down Expand Up @@ -423,7 +423,6 @@
let myValue = ""
const inputWebs = document.querySelectorAll('puik-input-web')
if (inputWebs) {
console.log(inputWebs)
inputWebs.forEach((inputWeb) => {
inputWeb.addEventListener('update:modelValue', (value) => {
console.log(value)
Expand Down

0 comments on commit 6a26eef

Please sign in to comment.