@mschop/alpine-web-components 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,7 @@ abstract class AlpineWebComponent extends HTMLElement {
104
104
  this.constructor.observedAttributes?.forEach((key: string) => {
105
105
  const value = this.getAttribute(key);
106
106
 
107
- if (value === null && this.state.attributes[key] !== undefined) {
107
+ if (value === null && this.state.attributes[key] !== undefined && this.state.attributes[key] !== null) {
108
108
  const attribute = this.castToAttribute(
109
109
  key,
110
110
  this.state.attributes[key],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mschop/alpine-web-components",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Use alpinejs with web components and shadow root",
5
5
  "main": "index.js",
6
6
  "scripts": {