Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Good 1.0.4 release breaks advanced radio buttons


Since upgrading Good to v1.0.4 advanced radio buttons are not updating the active state of button correctly. All radio button remains active.

This issue can be seen on live demo.

<a>https://preview.keenthemes.com/good/documentation/base/forms/advanced.html#radio-buttons-example-4</a>


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Thanks for your feedback. We will fix it in the next update. In the meantime you can quickly fix it by changing the below code in core/html/src/js/layout/app.js


var initButtons = function () {
var buttonsGroup = [].slice.call(document.querySelectorAll("[data-kt-buttons="true"]"));

buttonsGroup.map(function (group) {
var selector = group.hasAttribute("data-kt-buttons-target") ? group.getAttribute("data-kt-buttons-target") : ".btn";
var activeButtons = [].slice.call(group.querySelectorAll(selector));

// Toggle Handler
KTUtil.on(group, selector, "click", function (e) {
activeButtons.map(function (button) {
button.classList.remove("active");
});

this.classList.add("active");
});
});
}


Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(