1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-03-11 06:59:40 +01:00

fix pick date event misfiring

This commit is contained in:
Morris Brodersen 2024-02-02 17:51:54 +01:00
parent 881b44f156
commit 34dd51ff12

View File

@ -2,7 +2,7 @@ import { AppIcon } from './AppIcon.js';
import { formatMonth } from './util.js';
const datesCell = /* html */ `
<td><button class="app-button"></button></td>
<td><button class="app-button pick"></button></td>
`;
const datesRow = /* html */ `
@ -71,7 +71,7 @@ export function AppDatePicker(el) {
el.querySelector('.nextmonth').addEventListener('click', nextMonth);
el.addEventListener('click', (e) => {
if (!e.target.matches('.app-button')) return;
if (!e.target.matches('.pick')) return;
show = false;
update();