remove radio button js utility

This commit is contained in:
Felix Hamann 2019-04-06 19:16:48 +02:00
parent 39338c9b0d
commit a581640f7e
2 changed files with 0 additions and 27 deletions

View File

@ -5,10 +5,6 @@
display: flex;
}
.radio-group__option {
min-width: 30px;
}
.radio {
position: relative;
display: inline-block;

View File

@ -241,29 +241,6 @@
setup: checkboxUtil,
});
// turns native radio buttons into custom ones
window.utils.radio = function(input) {
if (!input.parentElement.classList.contains('radio')) {
var parentEl = input.parentElement;
var siblingEl = input.nextElementSibling;
var wrapperEl = document.createElement('div');
wrapperEl.classList.add('radio');
wrapperEl.appendChild(input);
if (siblingEl && siblingEl.matches('label')) {
wrapperEl.appendChild(siblingEl);
}
parentEl.appendChild(wrapperEl);
}
return {
scope: input,
destroy: function() {},
};
}
// Override implicit submit (pressing enter) behaviour to trigger a specified submit button instead of the default
window.utils.implicitSubmit = function(input, options) {
var submit = options.submit;