@code.gov/code-gov-style
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -228,2 +228,8 @@ 'use strict'; | ||
} | ||
var newEvent = new CustomEvent('change', { | ||
target: _this3 | ||
}); | ||
_this3.dispatchEvent(newEvent); | ||
}, false); | ||
@@ -230,0 +236,0 @@ }); |
@@ -8,2 +8,4 @@ --- | ||
# Simple Filter Box | ||
@@ -14,2 +16,7 @@ <filter-box | ||
></filter-box> | ||
<script> | ||
document.querySelector("filter-box").addEventListener('change', function handleChange(event) { | ||
console.log("event:", event); | ||
}); | ||
</script> | ||
``` | ||
@@ -16,0 +23,0 @@ <filter-box |
@@ -228,2 +228,8 @@ 'use strict'; | ||
} | ||
var newEvent = new CustomEvent('change', { | ||
target: _this3 | ||
}); | ||
_this3.dispatchEvent(newEvent); | ||
}, false); | ||
@@ -230,0 +236,0 @@ }); |
{ | ||
"name": "@code.gov/code-gov-style", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "Style for code.gov including buttons, banners, and cards. Inspired by and somewhat based on USWDS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -142,2 +142,6 @@ 'use strict'; | ||
} | ||
const newEvent = new CustomEvent('change', { target: this }); | ||
this.dispatchEvent(newEvent); | ||
}, false); | ||
@@ -144,0 +148,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
859167
2757