Open Bug 1981733 Opened 1 year ago Updated 1 year ago

`<input type=datetime-local>` with no `value` attribute does not fire oninput/change events on picker changes

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

People

(Reporter: saschanaz, Unassigned)

References

(Blocks 1 open bug)

Details

data:text/html,<input type=datetime-local id=input><script>input.oninput = console.log;input.onchange = console.log</script>

  1. Open the picker and pick a date
  2. Open the console and see there are events

Expected: Yes
Actual: No

Well there was no change until you pick a time too right?

Yes-ish, Chrome/Safari automatically gives the current time so each click gives input event. Perhaps that's a better behavior.

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.