@expressen/tallahassee
Advanced tools
Comparing version 12.0.0 to 12.1.0
@@ -6,2 +6,8 @@ Changelog | ||
## 12.1.0 | ||
- add `required` property to input, select, and textarea | ||
- fix textarea set value confusion, innerText and innerHTML has nothing to do with textarea value | ||
- override Element.toString to include class name | ||
## 12.0.0 | ||
@@ -8,0 +14,0 @@ |
@@ -61,2 +61,5 @@ "use strict"; | ||
} | ||
toString() { | ||
return `[object ${this.constructor.name}]`; | ||
} | ||
_getExistingIndex(...config) { | ||
@@ -63,0 +66,0 @@ return this[kListeners].findIndex((listener) => { |
@@ -37,2 +37,5 @@ "use strict"; | ||
} | ||
toString() { | ||
return `[object ${this.prototype.name}]`; | ||
} | ||
[Symbol.iterator]() { | ||
@@ -39,0 +42,0 @@ return this.entries(); |
@@ -39,2 +39,9 @@ "use strict"; | ||
} | ||
get required() { | ||
return this.$elm.prop("required"); | ||
} | ||
set required(value) { | ||
if (value === true) return this.setAttribute("required", "required"); | ||
this.removeAttribute("required"); | ||
} | ||
get value() { | ||
@@ -41,0 +48,0 @@ const value = this.getAttribute("value"); |
@@ -39,2 +39,9 @@ "use strict"; | ||
} | ||
get required() { | ||
return this.$elm.prop("required"); | ||
} | ||
set required(value) { | ||
if (value === true) return this.setAttribute("required", "required"); | ||
this.removeAttribute("required"); | ||
} | ||
get selectedIndex() { | ||
@@ -41,0 +48,0 @@ return this.options.selectedIndex; |
@@ -21,10 +21,8 @@ "use strict"; | ||
} | ||
set innerHTML(value) { | ||
this.$elm.html(value); | ||
this.value = this.$elm.html(); | ||
this._emitter.emit("_insert"); | ||
get required() { | ||
return this.$elm.prop("required"); | ||
} | ||
set innerText(value) { | ||
this.textContent = value; | ||
this.value = value; | ||
set required(value) { | ||
if (value === true) return this.setAttribute("required", "required"); | ||
this.removeAttribute("required"); | ||
} | ||
@@ -31,0 +29,0 @@ get value() { |
@@ -65,2 +65,5 @@ "use strict"; | ||
} | ||
toString() { | ||
return `[object ${this.constructor.name}]`; | ||
} | ||
_updateList(records) { | ||
@@ -67,0 +70,0 @@ const liveList = this[kLiveList]; |
{ | ||
"name": "@expressen/tallahassee", | ||
"version": "12.0.0", | ||
"version": "12.1.0", | ||
"description": "Lightweight client testing framework", | ||
@@ -39,3 +39,3 @@ "main": "index.js", | ||
"chai": "^4.3.6", | ||
"eslint": "^8.25.0", | ||
"eslint": "^8.26.0", | ||
"express": "^4.18.2", | ||
@@ -42,0 +42,0 @@ "markdown-toc": "^1.2.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
116502
3211