Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const onSubmit = (host, e) => {
e.preventDefault();
dispatch(host, 'submit', {
detail: host.val
});
let $input = host.shadowRoot.querySelector('#new-todo');
$input.value = '';
$input.blur();
}
const onchange = (host, event) => {
dispatch(host, 'checked', {
detail: parseInt(host.index)
});
};
const onclick = (host, event) => {
dispatch(host, 'removed', {
detail: parseInt(host.index)
});
};