Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Mar 4, 2022
1 parent afeada5 commit f4a048e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Contribute
Release Notes
-------------

### 1.3.1
### 1.3.2

- Added ability to convert `<input>` element with `list` attribute.
- Fixed the custom select box insertion node that does not consider the text node.
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta content="#000" name="theme-color">
<meta content="width=device-width" name="viewport">
<meta content="Just a generic custom `&lt;select&gt;` element with accessibility in mind." name="description">
<title>Option Picker 1.3.1</title>
<title>Option Picker 1.3.2</title>
<link href="index.min.css" rel="stylesheet">
<style>
* {
Expand Down Expand Up @@ -76,7 +76,7 @@
<body>
<p>Do you like this project? Please support my <a href="https://github.com/mecha-cms">Mecha CMS</a> project too. Thank you!</p>
<header>
<h1>Option Picker 1.3.1</h1>
<h1>Option Picker 1.3.2</h1>
<p>Just a generic custom <code>&lt;select&gt;</code> element with accessibility in mind.</p>
<hr>
</header>
Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@
toArray = true;
}
var value = (getState(node, 'className') || "").trim();
return toArray ? value.split(/\s+/) : value;
return toArray ? value.split(/\s+/).filter(function(v) {
return "" !== v;
}) : value;
};
var getName = function getName(node) {
return toCaseLower(node && node.nodeName || "") || null;
Expand Down Expand Up @@ -1152,6 +1154,6 @@
'parent': null,
'size': 5
};
OP.version = '1.3.1';
OP.version = '1.3.2';
return OP;
});
2 changes: 1 addition & 1 deletion index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,6 @@ OP.state = {
'size': 5
};

OP.version = '1.3.1';
OP.version = '1.3.2';

export default OP;
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browser": "index.min.js",
"bugs": "https://github.com/taufik-nurrohman/option-picker/issues",
"dependencies": {
"@taufik-nurrohman/document": "^0.2.0",
"@taufik-nurrohman/document": "^0.2.1",
"@taufik-nurrohman/event": "^0.3.1",
"@taufik-nurrohman/from": "^0.0.9",
"@taufik-nurrohman/has": "^0.0.3",
Expand Down Expand Up @@ -55,5 +55,5 @@
"pack": "pack --clean=false --from=.github/source --js-format=umd --js-name=OP --js-top='%(js.license)' --mjs=true --scss=true --to=."
},
"type": "module",
"version": "1.3.1"
"version": "1.3.2"
}

0 comments on commit f4a048e

Please sign in to comment.