Compare commits
No commits in common. "35490ff0e304612b3ef2a886b56dfe9c78e04e0c" and "8499177fde370a733e99bb81ba093a5366e2b58d" have entirely different histories.
35490ff0e3
...
8499177fde
2 changed files with 3 additions and 23 deletions
|
@ -3,6 +3,6 @@
|
||||||
"browser": "src/BetterSelect.js",
|
"browser": "src/BetterSelect.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "1.4.2",
|
"version": "1.4.1",
|
||||||
"url": "https://darkwiiplayer.github.io/BetterSelect/"
|
"url": "https://darkwiiplayer.github.io/BetterSelect/"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
/**
|
|
||||||
* @param {function} fn
|
|
||||||
*/
|
|
||||||
const template = fn => {
|
const template = fn => {
|
||||||
/**
|
|
||||||
* @param {TemplateStringsArray|String} arr
|
|
||||||
* @param {string[]} params
|
|
||||||
*/
|
|
||||||
return (arr, ...params) => {
|
return (arr, ...params) => {
|
||||||
if (arr instanceof Array) {
|
if (arr instanceof Array) {
|
||||||
const buffer = []
|
const buffer = []
|
||||||
|
@ -416,21 +410,6 @@ export class BetterSelect extends HTMLElement {
|
||||||
this.input.placeholder = text
|
this.input.placeholder = text
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return {String}
|
|
||||||
*/
|
|
||||||
get name() { return this.getAttribute("name") }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {String} name
|
|
||||||
*/
|
|
||||||
set name(name) { this.setAttribute("name", String(name)) }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return {HTMLFormElement}
|
|
||||||
*/
|
|
||||||
get form() { return this.#internals.form }
|
|
||||||
|
|
||||||
clear() {
|
clear() {
|
||||||
this.setValue(undefined, "")
|
this.setValue(undefined, "")
|
||||||
}
|
}
|
||||||
|
@ -445,3 +424,4 @@ export class BetterSelect extends HTMLElement {
|
||||||
if (methodName in this) this[methodName](after, before)
|
if (methodName in this) this[methodName](after, before)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue