Skip to content

Commit

Permalink
Bump to v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
carry0987 committed Oct 15, 2024
1 parent 7305912 commit 3ede6c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/radioBox.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ const reportInfo = (vars, showType = false) => {

class RadioBox {
static instances = [];
static version = '2.1.1';
static version = '2.1.2';
static firstLoad = true;
element = null;
options = defaults;
Expand Down Expand Up @@ -409,7 +409,7 @@ class RadioBox {
let { title, remainLabel, randomID, labelToRestore } = Utils.handleRadioboxTitle(ele, labelSibling);
bindLabel = remainLabel ? true : bindLabel;
// Handle radiobox checked status
if (this.options.checked || this.options.checked === 0 || ele.checked) {
if (this.options.checked !== null || ele.checked) {
// Initialize radiobox checked status based on options
this.updateRadioboxCheckedStatus(ele, index);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/radioBox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@carry0987/radio-box",
"version": "2.1.1",
"version": "2.1.2",
"description": "A library for create radio type check box",
"type": "module",
"main": "dist/radioBox.min.js",
Expand Down

0 comments on commit 3ede6c1

Please sign in to comment.