@dreamworld/dw-form
Advanced tools
Comparing version 4.0.0 to 4.1.0-remove-custom-getter-setter.1
import { LitElement, html, css, unsafeCSS } from "@dreamworld/pwa-helpers/lit.js"; | ||
import { classMap } from 'lit/directives/class-map.js'; | ||
import { classMap } from "lit/directives/class-map.js"; | ||
@@ -100,2 +100,9 @@ import * as TypographyLiterals from "@dreamworld/material-styles/typography-literals"; | ||
updated(_changeProperties) { | ||
if (_changeProperties.has("label")) { | ||
const labelEl = this.renderRoot.querySelector(".dw-label"); | ||
this._hasLabel = !!(this.label || labelEl); | ||
} | ||
} | ||
render() { | ||
@@ -132,17 +139,4 @@ const classes = { | ||
} | ||
set label(value) { | ||
const oldValue = this._label; | ||
let labelEl = this.renderRoot?.querySelector('.dw-label') ?? null | ||
// let labelEl = this.renderRoot.querySelector(".dw-label"); | ||
this._label = value; | ||
this._hasLabel = !!(value || labelEl); | ||
this.requestUpdate("label", oldValue); | ||
} | ||
get label() { | ||
return this._label; | ||
} | ||
} | ||
window.customElements.define("dw-form-field", DwFormField); |
{ | ||
"name": "@dreamworld/dw-form", | ||
"version": "4.0.0", | ||
"version": "4.1.0-remove-custom-getter-setter.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dw-form.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
27744
646
2