Skip to content

Conversation

sjroesink
Copy link

@sjroesink sjroesink commented Sep 23, 2025

Calling getEndOfWeek with an invalid date now causes an endless loop (getEndOfWeek("", "") for instance).
See https://codesandbox.io/p/sandbox/priceless-flower-8v9mhl?file=%2Fsrc%2FApp.js%3A7%2C5-7%2C17

This function is at least also called from DateInput. Simply setting an invalid value there also causes the loop after clicking the input:

<DateInput value={'invalid'} />

@rtivital
Copy link
Member

Can you give an example of code which causes an issue for you?

@sjroesink
Copy link
Author

Can you give an example of code which causes an issue for you?

@rtivital I updated the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants