みんなおきてー!
これonchangeでもoninputでもonblurでも日付入力したときに反映されないんだけどなんで?(時間のほうは入れたら反映される) <script lang="ts"> interface Props { onChange?: (date: Date) => void; } let { onChange }: Props = $props(); let selectedDate: string = $state(""); let selectedTime: string = $state("00:00"); // デフォルト時刻を設定 $effect(() => { const combinedDateTime = selectedDate ? new Date(`${selectedDate}T${selectedTime || "00:00"}`) : null; if (combinedDateTime) { onChange?.(combinedDateTime); } }); </script> <div class="flex flex-col gap-2"> <label class="flex flex-col"> DATE <input type="date" bind:value={selectedDate} class="rounded-md border px-2 py-1" /> </label> <label class="flex flex-col"> TIME <input type="time" bind:value={selectedTime} class="rounded-md border px-2 py-1" /> </label> </div>
あ、これで日付入れるボタンもつけてえいやってしたらいいか
どない? image View quoted note →
image こういうかんじで…
image いんぷっとらんでかくした
npub~~~とか入れるならもっと広いほうがいいかな…
検索欄大改造祭りどない?
りとりんも整理整頓できないよな
やることチャンネルにめもったりブクマに入れたりしてる どっちかにして