Financier Forums

Financier App => Bug Reports => Topic started by: ottyacat on November 09, 2016, 01:06:18 AM

Title: Date field freezing when typing a date manually
Post by: ottyacat on November 09, 2016, 01:06:18 AM
When manually typing a date into a date field, the whole browser tab locks up for an extended period of time.

Steps to reproduce:
Tested on Chrome, Firefox, Edge on Windows on multiple computers, same on all.
Title: Re: Date field freezing when typing a date manually
Post by: Alex on November 09, 2016, 08:21:23 AM
Hi @ottyacat

Can you let me know the locale you're using?

Thanks
Alex
Title: Re: Date field freezing when typing a date manually
Post by: ottyacat on November 09, 2016, 12:53:50 PM

Hi @Alex

English\Australia
Title: Re: Date field freezing when typing a date manually
Post by: Alex on November 10, 2016, 04:48:42 PM
Well, that's a fun issue. It's trying to get the category balances for a year that's XXX (like literally A.D. 123) which is causing perf issues.

I made a quick fix that will restrict dates to > 1970. :)

https://trello.com/c/SmaSo0bA/264-don-t-allow-dates-1970-to-be-valid
Title: Re: Date field freezing when typing a date manually
Post by: ottyacat on November 10, 2016, 06:38:28 PM
Quote from: Alex on November 10, 2016, 04:48:42 PM
Well, that's a fun issue. It's trying to get the category balances for a year that's XXX (like literally A.D. 123) which is causing perf issues.

I made a quick fix that will restrict dates to > 1970. :)

https://trello.com/c/SmaSo0bA/264-don-t-allow-dates-1970-to-be-valid

Oh yea, that will do it! Thanks for looking into it :)
Title: Re: Date field freezing when typing a date manually
Post by: Alex on November 14, 2016, 05:41:29 PM
@ottyacat Should be good! LMK if it is not fixed for you.
Title: Re: Date field freezing when typing a date manually
Post by: ottyacat on November 15, 2016, 04:05:35 AM
Thanks mate, looks good!