(fix:radio-groups) preserve the radio input's checked state after handling a state change

Do not manually toggle the input's checked state, the browser already does this for inputs in the same group.
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Attribute/group
pull/403/head
Cristian Necula 9 years ago
parent 2eef227c0d
commit 3c9f82a7b6

@ -59,9 +59,7 @@ export default function createBinding ( generator, node, attribute, current, loc
setter = deindent`
if ( !${local.name}.checked ) return;
${setter}
component._bindingGroups[${bindingGroup}].forEach( function ( input ) {
input.checked = false;
});`;
`;
}
const condition = type === 'checkbox' ?

Loading…
Cancel
Save