Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • 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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(