algolia / hn-search

Hacker News Search
http://hn.algolia.com
Other
549 stars 74 forks source link

Overrunning input of DatePicker crashes the application #235

Open qsantos opened 1 year ago

qsantos commented 1 year ago

Step to Reproduce

  1. Launch Mozilla Firefox 111.0.1 on Debian testing
  2. Navigate to https://hn.algolia.com/
  3. In the drop-down menu “for All-time”, pick “Custom range”
  4. Click on the “From” label or the corresponding date input field
  5. Typey typey, e.g. “12345678”
  6. ??
  7. Profit

Debugging Information

The crash is depicted in the screenshot below.

Screenshot 2023-04-11 at 21-20-08 HN Search powered by Algolia

The error in the console is RangeError: Invalid time value, pointing at Datepicker.tsx:152.

The full trace is:

RangeError: Invalid time value
    A 1-4024fe4be3f766184635.chunk.js:1
    default Datepicker.tsx:152
    $o application-482016987ad7c182d39d.js:1
    Ei application-482016987ad7c182d39d.js:1
    Ai application-482016987ad7c182d39d.js:1
    qa application-482016987ad7c182d39d.js:1
    za application-482016987ad7c182d39d.js:1
    Ou application-482016987ad7c182d39d.js:1
    Eu application-482016987ad7c182d39d.js:1
    Fe application-482016987ad7c182d39d.js:1
    De application-482016987ad7c182d39d.js:1
    Rn application-482016987ad7c182d39d.js:1
    ju application-482016987ad7c182d39d.js:1
    unstable_runWithPriority application-482016987ad7c182d39d.js:1
    ju application-482016987ad7c182d39d.js:1
    jn application-482016987ad7c182d39d.js:1
    d raven.js:445
[raven.js:58:31](https://cdn.ravenjs.com/3.26.4/raven.js)
    2]</e/a[b raven.js:58
    ia application-482016987ad7c182d39d.js:1
    callback application-482016987ad7c182d39d.js:1
    Xi application-482016987ad7c182d39d.js:1
    Ji application-482016987ad7c182d39d.js:1
    Ma application-482016987ad7c182d39d.js:1
    Ua application-482016987ad7c182d39d.js:1
    _u application-482016987ad7c182d39d.js:1
    unstable_runWithPriority application-482016987ad7c182d39d.js:1
    _u application-482016987ad7c182d39d.js:1
    Ou application-482016987ad7c182d39d.js:1
    Eu application-482016987ad7c182d39d.js:1
    Fe application-482016987ad7c182d39d.js:1
    De application-482016987ad7c182d39d.js:1
    Rn application-482016987ad7c182d39d.js:1
    ju application-482016987ad7c182d39d.js:1
    unstable_runWithPriority application-482016987ad7c182d39d.js:1
    ju application-482016987ad7c182d39d.js:1
    jn application-482016987ad7c182d39d.js:1
    d raven.js:445